Windows sets tomcat as an auto-start service

1. Download the installation-free tomcat package and unzip it

2. Configure environment variables:  

Click New to create a variable named: CATALINA_HOME

             The variable value is: the location where tomcat decompresses the file, such as F:\apache-tomcat-7.0.65

Then under the variable name path, add ;%CATALINA_HOME%\bin\;

3. Open the command window, namely: Start-->Run-->cmd-->Enter  

4. Then open the bin directory under the tomcat folder, there is a service.bat in it, and drag this file into the command window. Enter. How to print only one sentence without any error. Otherwise, check whether the above steps are wrong

5. Then enter service.bat install Tomcat in the command window (add tomcat to the service)

6. Open the service, find tomcat, and then modify it to automatically start and start. Enter localhost:8080 in the browser to access the tomcat page, which is success

 

If you want to uninstall the tomcat service, the command is as follows: service.bat uninstall Tomcat

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325325974&siteId=291194637
Recommended