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 ".