Tomcat and jdk are packaged and deployed in linux. 1. find a jdk of the installed linux version and package the installed directory. 2. decompress the packaged jdk in the tomcat root directory and change the name to jdk 1.6linux. 3. modify % tomcat %/bin/setclasspath. sh, add exportJAVA in the first few lines... tomcat and jdk are packaged and deployed in linux. find an installed linux jdk and package the installed directory. 2. decompress the packaged jdk in the tomcat root directory and change it to jdk 1.6linux. 3. modify % tomcat %/bin/setclasspath. sh and add export JAVA_HOME = "../jdk1.6linux" to the previous lines ". (Note: modify % tomcat %/bin/setclasspath. bat in windows, and add set JAVA_HOME = ../jdk1.6windows in the first few lines .) 4. go to the % tomcat %/bin directory and execute chmod 755 *. sh to set permissions for all sh. 5. go to the % tomcat %/jdk1.6linux/bin directory and run chmod 755 java to set permissions for java. 6. go to the % tomcat %/bin directory and run./startup. sh to start tomcat. 7. run tail-f % tomcat %/logs/catalina. out to view logs.
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