Install Multiple Tomcat services on the same machine in Windows

Source: Internet
Author: User
Tags apache tomcat

1. Software Download

Download from the official website.

 

2. Installation
1) modify the configuration file
Decompress the downloaded apache-tomcat-5.5.27.zip file and copy it to D: \ tomcat-5.5.27-product and D: \ tomcat-5.5.27-test.
Open D: \ tomcat-5.5.27-product \ conf \ Server. xml and modify the port
Search for 8080, change to 8081

 

2) create a service to install and uninstall a batch file
Create installservice. bat under D: \ tomcat-5.5.27-product \. The content is as follows:
D: \ tomcat-5.5.27-product \ bin \ service. Bat install tomcat5product
Create uninstallservice. bat under D: \ tomcat-5.5.27-product \. The content is as follows:
D: \ tomcat-5.5.27-product \ bin \ service. Bat remove tomcat5product

 

Then execute the batch processing file.

 

In addition, enter the command line directly.

D: \ tomcat-5.5.27-product \ bin \ service. Bat installTomcat7

 

The error "atat.exe" is not found.

Switch drive letter:

Enter "D" in the command line and press enter (CD is not required before ).

Switch to the directory:

Enter cd d: \ tomcat-5.5.27-product \ bin in the command line.

Re-install: Service. Bat installTomcat7

To install Tomcat in win7/Win8, run the command line as an administrator. Otherwise, the Tomcat service cannot be started.

After the installation is normal, the service name will change to Apache Tomcat 7.

 

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.