------------------ set the exe file to self-boot---------------- Just one line of command:
SC create myService binpath= c:\windows\system32\myService .exe start= auto
------------------ set tomcat to self-start------------------
Because the unzipped version of Tomcat does not have a startup item on the Windows service, it needs to be added manually, and then you can set it to boot Tomcat. 1. Installation services
Go to /Tomcat path /bin/ in the command line, execute "service.bat install" :(start-run, type cmd, cd Tomcat path /bin, service.bat install). So far, an Apche Tomcat service has been added to the Windows service
Illustrate: 1. The default service name is set in the service name and display name :service.bat, and different versions are named Tomcat4, Tomcat5, Tomcat6, if you need to customize the service name or the display name of the service, you can modify the SERVICE_NAME or PR_DISPLAYNAME in the service.bat. 2. Impact of firewall: /bin/tomcat6.exe (or tomcat4.exe, tomcat5.exe) will be used as a service program, and if there is a firewall, it needs to be set as allowed as a service.
2. Uninstall the service
Go to /Tomcat path /bin/ in the command line and perform "service.bat remove":
3. Start the Tomcat settings
Start - Control Panel - Admin Tools - Services
Find the apche tomcat right-click property and change manual to automatic
|