Install and configure Jdk1.6 and Tomcat6.0.32 in CentOS6.3 in Linux
Source: Internet
Author: User
Install and configure Jdk1.6 and Tomcat6.0.32 in CentOS6.3 in Linux. the following methods are correct after your hands-on practices: 1. first, download JDK, I downloaded jdk-6u37-linux-i586-rpm.bin. after the download, connect to the VM through SSH. put it...
Install and configure Jdk 6.3 and Tomcat 6.0.32 in CentOS 1.6 in Linux and learn from the online resources. the following method is the correct installation method: 1. first, download JDK, I downloaded jdk-6u37-linux-i586-rpm.bin. after the download, connect to the VM through SSH. put it in the/home/tools Directory. Run the following command: 1) # cd/home/tools 2) # chmod 777 jdk-6u37-linux-i586-rpm.bin this command allows the current user to execute this program and modify permissions. 3 )#. /jdk-6u37-linux-i586-rpm.bin at this time the program will automatically decompress and automatic installation, the installation process is displayed in progress, the default installation in the/usr/java directory to generate the jdk1.6.0 _ 37 folder, the installation is complete prompt done 4) # mv/usr/java/usr/local/java move the newly installed program folder to the/usr/local/java directory www.2cto.com 5) edit # vi/etc/profile (open in text editor) and add JAVA_HOME =/usr/local/java/jdk1.6.0 _ 37 CLASSPATH =.: $ JAVA_HOME/lib/tools. jar: $ JAVA_HOME/jre/lib/dt. jar PATH = $ JAVA_HOME/bin: $ PATH export JAVA_HOME export CLASSPATH export PATH 6) backup source file # mv/usr/bin/java. bak # mv/usr/bin/javac. bak 7) restart the virtual machine or execute the source/etc/profile command to make it take effect 8) input # java # javac # java-version to check that the java version is successfully configured; www.2cto.com unzip, also put it in the/home/tools directory 1) decompress it using the command # tar zxvf linux-apache-tomcat-6.0.32.tar.gz 2) decompress it to generate the apache-tomcat-6.0.32 file, also move it to the/usr/local/java Directory # mv apache-tomcat-6.0.32/usr/local/java 3) start Tomcat #/usr/local/java/apache-tomcat-6.0.32/bin/startup. sh 4) you can enter the test information in the virtual machine GUI. http://localhost:8080 If you see the Tomcat image, it indicates the operation is successful. although it looks very simple, it is not so trivial to operate. if you encounter various problems, you should warn yourself that the best teacher is the Internet, REMEMBER !!!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service