Install 1)download apache-tomcat-6.0.20.tar.gz // Unzip 3) cp-Rapache-tomcat-6.0.20/usr/local/tomcat // Copy apache-tomcat-6.0.20 to/usr/local/and rename it to t
Install1)download apache-tomcat-6.0.20.tar.gz // different versions 2) tar-zxvf apache-tomcat-6.0.20.tar.gz // Unzip 3) cp-R apache-tomcat-6.0.20/usr/local/tomcat // Copy apache-tomcat-6.0.20 to/usr/local/and rename it tomcat4) /usr/local/tomcat/bin/startup. sh // start tomcat: Using CATALINA_BASE:/usr/local/tomcatUsing CATALINA_HOME:/usr/local/tomcatUsing CATALINA_TEMDIR:/usr/local/tomcat/tempUsing JAVA_HOME: /usr/java/jdk1.6.0 _ 14 depending on the version However, tomcat has been installed successfully. visit http: // localhost: 8080 in a browser. the default tomcat page appears, indicating that the installation is successful. The installation directory of tomcat is configured under/usr/local/tomcat. the directory structure is the same as that of Windows.
StartSudo./startup. sh
StopSudo./shutdown. sh
Into system serviceCd/etc/init. dvi tomcatBash code #! /Bin/bash # description: Tomcat Start Stop Restart # processname: tomcat # chkconfig: 234 20 80 JAVA_HOME =/usr/java/jdk1.6.0 _ 30 export JAVA_HOME PATH = $ JAVA_HOME/bin: $ PATH export PATH CATALINA_HOME =/usr/share/apache-tomcat-6.0.35 case $1 in start) sh $ CATALINA_HOME/bin/startup. sh; stop) sh $ CATALINA_HOME/bin/shutdown. sh; restart) sh $ CATALINA_HOME/bin/shutdown. sh $ CATALINA_HOME/bin/startup. sh; esac exit 0 chmod 755 tomcatchkconfig -- add tomcatchkconfig -- level 2345 tomcat onchkconfig -- list tomcat
Service CommandsService tomcat startservice tomcat restartservice tomcat stop
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