- Enter the decompressed directory of tomcat in the DOS window and enter the bin directory;
- 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;
- 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.
========================================================== ==============================