Enter the Tomcat installation directory ==> enter the bin directory ==> input: service.bat install
If you want to remove the tomcat service, the operation is as follows:
Specific installation method: open a command line prompt window
=> Enter the Tomcat installation directory ==> Enter the bin directory ==> Input: service.bat remove tomcat service name (such as tomcat7).