Version-free tomcat registered as a Windows system service method

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.