Decompression version Tomcat set to system service

Source: Internet
Author: User

1 . Close Tomcat First , enter cmd command in " start " → " run " , Enter MS-DOS interface
2. Enter into the Tomcat Bin directory (unzip version of the Tomcat directory , such as I am F:\javasoft\apache-tomcat-6.0.45-windows-x64)

F:

CD Javasoft\apache-tomcat-6.0.45-windows-x64\bin

3, run the command service install, you can register tomcat as a system service


f:/javasoft\apache-tomcat-6.0.45-windows-x64\bin > Service Install

The service installation is successful as shown

4, so the registered service startup type is manual, if you want to set up to boot automatically, you need to modify the Tomcat bin directory of the service.bat file.  Open this file with Notepad , in the penultimate line of the sentence output echo the service '%service_name% ' has been installed. This is the output service installation succeeded. Before this add :sc config%service_name% start= auto as shown:


5. Finally, start the Tomcat service with the following command:

f:/javasoft\apache-tomcat-6.0.45-windows-x64\bin >net Start Tomcat6

Note:

The Shutdown Service command is: net stop Tomcat6

The Delete Service command is: Service Uninstall

Unzipped version of Tomcat set to system service

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.