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