Install Jdk in RedHat9 and deploy project 1. first download jdk-6u45-linux-i586-rpm.bin from the official website 2. use an ssh client to upload data to a directory on the server. 3. chmod + x jdk-6u19-linux-i586-rpm.bin 4 .. /jdk-6u19-linux-i586-rpm.bin. /cannot be less than 5. run the rpm-ivh jdk-6u19-linux-i586.rpm for this file. after the installation is complete, you will see an additional java folder under/usr, and jdk will be installed.
6. next, set the environment variable vi/etc/profile 7. add the following statement: export JAVA_HOME = "/usr/java/jdk1.6.0 _ 19" export CLASSPATH = "/usr/java/jdk1.6.0 _ 19/lib: /usr/java/jdk1.6.0 _ 19/jre/lib "pathmunge/usr/java/jdk1.6.0 _ 19/bin:/usr/java/jdk1.6.0 _ 19/jre/bin
Note: there cannot be spaces on both sides of "=", which is the third line of the colon without quotation marks 8. terminal java-version test whether the installation is successful jdk uninstall # rpm-e -- nodeps jdk-1.6.0_22-fcs Delete directory rm-rf directory name unzip ate install 1. unzip tomcat tar xvzf apache-tomcat-6.0.37.tar.gz 2. go to the "bin" directory under "cmdate" and execute the following command. /startup. sh