In Windows, set the decompressed version of Tomcat to a system service that runs automatically.

Source: Internet
Author: User
  1. Enter the decompressed directory of tomcat in the DOS window and enter the bin directory;
  2. Run service install Tomcat to install the Tomcat service. The command runs the service. Bat script in the bin directory. Tomcat is the service name;
  3. The second step is to install the service, and the service is not set to start at startup. here you need to set it. In the command line, enter SC config Tomcat start = auto, there must be a space between start = and auto.

========================================================== ==============================

In addition, the usage of SC config is briefly described here:

SC Configservice namestart = {boot | system | auto | demand | disabled}

Value description
SC config
Modify the values of service items in the Registry and Service Control Manager databases.

Service name
Specifies the brief name of the service.

Start =
Specify the Service Startup type.

Boot
Loaded by startupProgramThe device driver.

System
The device driver started during kernel initialization.

Auto
A service that can be automatically started every time a computer is restarted and no one is logged on to the computer.

Demand
Services that must be manually started. If start = is not specified, this is the default value.

Disabled
The service cannot be started. To start a disabled service, change the Startup type to another value.

 

========================================================== ==============================

 

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.