Install Jdk in RedHat9 and deploy Project 1. first Download jdk-6u45-linux-i586-rpm.bin2 from the official website. use an ssh client to upload data to a directory on the server. 3. chmod + xjdk-6u19-linux-i586-rpm.bin4 .. /jdk-6u19-linux-i586-rpm.bin. /cannot be less than 5. execute this document... 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
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.