Ubuntu tomcat self-start

Source: Internet
Author: User

Ubuntu tomcat self-starting apache-tomcat-6.0.28.tar.gz tomat version tar zvxf apache-tomcat-6.0.28.tar.gz switch path to tomcat bin directory. Tomcat self-starting: cp catalina. sh/etc/init. d mv catalina. sh tomcat open tomcat and find <xmlnamespace prefix = "o" ns = "urn: schemas-microsoft-com: office: office "/> cygwin = false os400 = false <xmlnamespace prefix =" st1 "ns =" urn: schemas-microsoft-com: office: smarttags "/> darwin = false before adding: CATALINA_HOME =/zjc/tomcat (tomcat main directory) JAVA_HOME =/zjc/jdk1.6.0 _ 27 (jdk main directory) // save, you can run the service tomcat start command in the/etc/init. d. Create a STARTUP script. For example, the content of the tomcat file is :#! /Bin/bash # Tomcat auto-start # description: Auto-starts tomcat # processname: tomcat # pidfile:/var/run/tomcat. pid # JAVA_HOME is jdk main directory export JAVA_HOME =/usr/java/jdk1.6.0 _ 27 case $1 instart) sh/usr/local/apache-tomcat-5.5.33/bin/startup. sh; stop) sh/usr/local/apache-tomcat-5.5.33/bin/shutdown. sh; restart) sh/usr/local/apache-tomcat-5.5.33/bin/shutdown. sh/usr/local/apache-tomcat-5.5.33/bin/startu P. sh; esacexit 0 ----------------------------------------------------------------------- the tomcat files generated in the preceding two methods can start the service. After service tomcat start/stopsudo chmod 755/etc/init. d/tomcat is successfully added to the system self-service: update-rc.d-f tomcat defaults Delete auto-start: udpate-rc.d-f tomcat remove.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.