Windows Tomcat Standalone deployment multi-application

Source: Internet
Author: User
Tags server port

1. Added tomcat-related environment variables

For example, there are two tomcat,tomcat1 and TOMCAT2

2. Modify the Catalina.bat file

The first Tomcat does not change

The second Tamcat Catalina.bat

Path ${tomcat}/bin/catalina.bat

Replace the catalina_base in the file with the Catalina_2_base

Startup.bat under the second Tomcat directory

Path ${tomcat}/bin/startup.bat

Replace the catalina_home in the file with the Catalina_2_home

The Server.xml file in the second Tomcat conf directory

Path ${tomcat}/conf/server.xml

Server Prot Node Port modification

<server port= "8005" shutdown= "Shutdown" >

Change into

<server port= "9005" shutdown= "Shutdown" >

Connector Port Port Number modification

<connector port= "8080" protocol= "http/1.1"
connectiontimeout= "20000"
redirectport= "8443"/>

Change into

<connector port= "9080" protocol= "http/1.1"
connectiontimeout= "20000"
redirectport= "8443"/>

<connector port= "8009" protocol= "ajp/1.3" redirectport= "8443"/>

Change into

<connector port= "9009" protocol= "ajp/1.3" redirectport= "8443"/>

3. Start two Tomcat respectively

CMD into the bin directory under two Tomcat, respectively, to execute Startup.bat

Windows Tomcat Standalone deployment multi-application

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.