Command line add delete tomcat service

Source: Internet
Author: User
Tags apache tomcat

Sometimes we need to re-add or uninstall the Tomcat service at the time of the project deployment, where we can do this at the command prompt, with the following steps:
1. Start-run, typing cmd, enter to open the command prompt.
2. Make a tomcat drive letter, such as D, and directly at the command prompt, D: enter.
3. Use the CD command to enter the bin directory under the Tomcat installation directory (because you want to call the Service.bat file in the folder, huh).
4. Install the Delete Service command format: Service.bat install/remove [service_name]
(1) Install: Service Install if the specified name is TOMCAT5, the service name is Apache Tomcat TOMCAT5 after installation, you can specify no name, and the default is Apache if the command is service install Tomcat.
(2) Delete: Service remove this command is used to remove services named Apache Tomcat, which means that the service name is not specified when the service is installed, if a name is specified at installation (such as Apache Tomcat TOMCAT5).

After the operation is completed, you do not need to restart the computer, directly refresh the service page is OK.

Command line add delete tomcat 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.