Registration method:
1. In DOS command line mode, CD to the Tomcat bin directory
CD Tomcatpath
root directory plus : rear carriage return
Go to the Tomcat installation directory, CD bin, enter the Tomcat boot directory
2. In the Tomcat bin directory, you can see a service.bat batch file that is used for us to register Tomcat as a system service.
3. Execute the command service.bat the service name behind the install Xxtomcatserver can be arbitrarily taken, do not conflict with the system's existing service name.
If successful, you can see the following message:
The service ' name ' has been installed
Other:
1. Service Uninstall
If you do not need this service, you can also use simple commands to remove it is OK
Previous steps above, execute command: Service.bat Uninstall service Name
To remove a successful message:
The service ' name ' has been removed
2. Error log tracking
Resources
1, http://blog.csdn.net/huiwenjie168/article/details/42267353
2, http://blog.csdn.net/justanobody/article/details/5677602
Java Tomcat is registered as a Windows system service