In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to install JDK,Tomcat,MySQL in Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1 installation of J2SDK
First go to java.sun.com to download JDK on Linux. I downloaded 6. 0. Jdk-6u4-linux-i586-rpm.bin, and then ftp to Linux
Execute: chmod 755 jdk-6u4-linux-i586-rpm.bin then execute
. / jdk-6u4-linux-i586-rpm.bin
Will automatically generate and install a large number of rpm packages, after the completion of the use of java, JDK5.0 above do not need to set up PATH,CLASS_PATH or anything, can be used directly.
2 installation of TOMCAT
Go to apahce to download the latest apache-tomcat-6.0.16.tar.gz, and then go to ftp
Execute:
Tar zxvf apache-tomcat-6.0.16.tar.gz
Decompress.
Will produce a directory called apache-tomcat-6.0.16, change the directory name, too long, I changed it to tomcat, put it in any directory, I put it under / opt. Go to tomcat's bin directory and unzip jsvc.tar.gz with a similar command above.
In order to compile jsvc, you need to set the environment variable and add the following two lines to ~ / .bash_profile:
JAVA_HOME=/usr/java/jdk1.6.0_04
Export JAVA_HOME
And then make this work, execute it.
. ~ / .bash_profile
Just do it. Enter the jsvc-src directory
Execute the following command to compile jsvc
Autoconf
. / configure
Make
Cp jsvc..
Cd..
Copy jsvc-src/natvie/Tomcat6.sh to / etc/init.d, rename it tomcat, and add executable permissions.
Cp jsvc/native/Tomcat6.sh / etc/init.d/tomcat
Chmod 755 / etc/initd/tomcat
Modify the script and notice the directory in the first few lines. Mine is
JAVA_HOME=/usr/java/jdk1.6.0_04
DAEMON_HOME=/opt/tomcat
CATALINA_HOME=/opt/tomcat
TOMCAT_USER=root
Then do the automatic startup, mine is under / etc/rc3.d, if you start it with a graphical interface, then execute it under / etc/rc5.d
Cd / etc/init.d/rc3.d/
Ln-s.. / init.d/tomcat S99tomcat
Then you can use it.
Service tomcat start
Here we go. You can see the interface of Tomcat by accessing port 8080 with a browser.
3 installation and configuration of Mysql
To find the corresponding platform rpm package, such as rpmfind.net, download, RedHat9 does not have the official RPM package, I finally found an old version: http://download.softagency.net/mysql/Downloads/redhat/9/i386/ has.
And then
Rpm-ivh MySQL-server-4.0.23a-1.9.i386.rpm
Rpm-ivh MySQL-client-4.0.23a-1.9.i386.rpm
Just install it. If you are prompted that the dependency package is missing and the installation fails, you can install it like this:
Rpm-ivh-- nodeps MySQL-server-4.0.23a-1.9.i386.rpm
Rpm-ivh-- nodeps MySQL-client-4.0.23a-1.9.i386.rpm
Forced installation, most of the missing is Perl package, do not worry about it.
Then test it with mysql.
Then make sure that root users of MySQL can access it remotely.
Log in with mysql, execute:
Mysql > use mysql
Mysql > select * from user
There are four records, delete the last three, leave only the first, and then change the Host of the first record to%.
The scheme circulated on the Internet is feasible, but no attention has been paid to the need to delete duplicate root records.
Thank you for reading! This is the end of the article on "how to install JDK,Tomcat,MySQL in Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.