First, download Tomcat
Tomcat can be downloaded from the http://tomcat.apache.org/website, select any version, and the ZIP package under Binary distributions is both.
Ii. Configuring Tomcat
1, unzip the version of Tomcat to the corresponding path (such as: D:\TomcatServer\ renamed Tomcat to TOMCAT1)
2. If there is more than one tomcat on the server, you must modify the port in the D:\TomcatServers\Tomcat1\conf\server.xml
<server port= "9071" shutdown= "shutdown" ><connector port= "9091" protocol= "http/1.1" connectiontimeout= "20000" redirectport= "9061"/><connector port= "9081" protocol= "ajp/1.3" redirectport= "9061"/>
3, modify the Service.bat file (D:\TomcatServers\Tomcat1\bin\service.bat) The file changes in two places can be
①: Add the following settings at the beginning of the file, respectively, the installation path of Java, the installation path of Tomcat, and the name of the service
SET Java_home=d:\tomcatservers\tomcat1\java\jdk1.6.0set Catalina_home=d:\tomcatservers\tomcat1set PR_DISPLAYNAME= Tomcat1
②: Locate the following in the middle of the file and modify
REM Set default Service nameset SERVICE_NAME=TOMCAT7
Revision changed to
REM Set default Service nameset SERVICE_NAME=TOMCAT1
4, modify the Shutdown.bat and Startup.bat files (d:\tomcatservers\tomcat1\bin\shutdown.bat|startup.bat) These two files are changed in the same place in the file header to add the following content
SET Java_home=d:\tomcatservers\tomcat1\java\jdk1.6.0set CATALINA_HOME=D:\TOMCATSERVERS\TOMCAT1
Three
joining Tomcat to the service
First run Win+r Open the Run dialog box, enter the cmd command to open the console, as shown below to complete the registration
has successfully registered
Iv. Uninstalling the Tomcat service
Version-free tomcat registered as a Windows system service method