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) Then we can start Tomcat #/usr/local/java/apache-tomcat-6.0.32/bin/startup. sh 4) in the GUI of the VM, enter http: // localhost: 8080. If the Tomcat image is displayed, 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 !!!