There is a problem with port number collisions when deploying multiple tomcat on the same server, so you need to modify the Tomcat configuration file Server.xml, as an example of TOMCAT7.
- First, learn about several of the main ports of the following Tomcat:
<connector port= "8080" protocol= "http/1.1" connectiontimeout= "60000" redirectport= "8443" disableUploadTimeout= " False "executor=" Tomcatthreadpool "uriencoding=" UTF-8 "/>
Where 8080 is an HTTP port and 8443 is an HTTPS port
<server port= "8005" shutdown= "Shutdown" >
8005 for remote Stop service port
<connector port= "8009" protocol= "ajp/1.3" redirectport= "8443"/>
8009 is the AJP port, Apache can access the 8009 port of Tomcat over the AJP protocol.
- Deploying multiple Tomcat primarily modifies three ports:
1.HTTP Port, default 8080, change to 8081
<connector port= "8081" protocol= "http/1.1" connectiontimeout= "60000" redirectport= "8443" Disableuploadtimeout= "false" executor= "Tomcatthreadpool" uriencoding= "UTF-8"/>
2. Remote Stop service port, default 8005, change to 8006
<server port= "8006" shutdown= "shutdown";
3.AJP Port, default 8009, as modified, 8010
<connector port= "8010" protocol= "ajp/1.3" redirectport= "8443"/>
Port number modification Details When multiple tomcat is deployed on the same server