Tomcat6 sets the auto-start script sharing on Ubuntu8.04

Source: Internet
Author: User
The other articles are similar to those in coldfusion. You can directly present Tomcat6 and set the self-starting script on Ubuntu8.04:/etc/init. d/tomcat #! /Bin/sh # Tomcatauto-start # description: Auto-startstomcat # processname: tomcat # pidfile:/var/run/tomcat. pidexport

The rest are similar to the coldfusion article, so we will directly present Tomcat 6 to set the self-starting script on Ubuntu8.04:

/Etc/init. d/tomcat

#! /Bin/sh
# Tomcat auto-start
#
# Description: Auto-starts tomcat
# Processname: tomcat
# Pidfile:/var/run/tomcat. pid

Export JAVA_HOME =/usr/lib/jvm/java-6-sun

Case $1 in
Start)
Sh/opt/apache-tomcat-6.0.16/bin/startup. sh
;;
Stop)
Sh/opt/apache-tomcat-6.0.16/bin/shutdown. sh
;;
Restart)
Sh/opt/apache-tomcat-6.0.16/bin/shutdown. sh
Sh/opt/apache-tomcat-6.0.16/bin/startup. sh
;;
*)
Echo 'usage: tomcat start | stop | restart'
;;
Esac

Exit 0

Related Article

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.