Set Tomcat as a system service in Windows

Source: Internet
Author: User

After Tomcat is set as a system service, Tomcat will be automatically started when the system starts.

Tomcat5.0 and later versions provide options for automatically adding system services during installation. You only need to select "join system service. If this is not done during installation, such as the development phase. After the development is complete, you need to add it. You can do this:

1. tomcat5.0 and later versions provide a service. Bat script in the tomcat_home/bin directory. The script is used to add tomcat to or delete Tomcat from the system service. The usage is as follows:

Service. Bat install [SERVICE_NAME]

SERVICE_NAME is optional. If this parameter is not specified, Tomcat 5 is used as the service name.

Likewise, you can delete Tomcat from the System Service:

Service. Bat remove

2. register the Tomcat Startup file to the Windows Automatic startup project. For example, in the HKEY_LOCAL_MACHINE/software/Microsoft/Windows/CurrentVersion/run position of the Registry, select "new-> string ", you can give a name, such as tomcat_exec. Double-click the position of the startup. Bat script in the value data column, for example, tomcat_home/bin/startup. bat ".

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.