Tomcat+apache One load balancer: Deploy more than 2 tomcat on the same computer

Source: Internet
Author: User

1. Download Tomcat 8.0.17 http://apache.fayea.com/tomcat/tomcat-8/v8.0.17/bin/apache-tomcat-8.0.17.tar.gz

(Tomcat 8, must have JDK 1.7 support, this assumes that you have configured the JDK1.7 environment, if not configured, please self-Baidu)

2. Extract the above tomcat to a local directory: (renamed as: tomcat80171, tomcat80172

e:/tomcat-test/tomcat80171

e:/tomcat-test/tomcat80172

3. Make the following modifications to the tomcat80172 E:\tomcat-test\tomcat80172\conf\server.xml file configuration:

3.1 <server port="8005" shutdown= "shutdown" > modified to <server port="9005" shutdown= "Shutdown" >

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

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

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

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

4. Publish an available servlet, respectively, to the

E:\tomcat-test\tomcat80171\webapps

E:\tomcat-test\tomcat80172\webapps

5. Start 2 Tomcat

6. Visit your corresponding servlet address separately:

Http://localhost:8080/FddDemo/fddServlet

Http://localhost:9080/FddDemo/fddServlet

7. Check the tomcat80171, tomcat80172 console, with log print, indicating that 2 tomcat configurations are normal.

8. If more than one tomcat is configured on the same server, the configuration modification is the same as the 3rd step. (note, if there are multiple servers, there is no port conflict, there is no need to modify the configuration, both are the default ports: 8080)

OK, the above only as a record, are verified in my local environment.

The next section describes how to implement the load balancing implementation of APACHE+TOMCAT

Tomcat+apache One load balancer: Deploy more than 2 tomcat on the same computer

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.