If you do not modify any of the configuration information for Tomcat, it is obviously impossible to start multiple tomcat simultaneously on the same computer, and there will be a port occupancy conflict. Therefore, to start multiple tomcat at the same time, you must modify some port numbers for the configuration file.
I looked at it from the Internet and it was so complicated that I started experimenting on it and sorted it out as follows (in the tomcat6.0.37 version, for example):
Modify the ${tomcat_home}/conf/server.xml file as follows:
1, modify the shutdown port, change "8005" to another port (default is 8005 port):
<server port= "8005" shutdown= "Shutdown" >
2, modify the HTTP protocol port, change "8080" to another port (default is 8080 port):
<connector port= "8080" protocol= "http/1.1" connectiontimeout= "20000" redirectport= "8443"/>
3, modify the AJP protocol port, change "8009" to another port (default is 8009 port):
<connector port= "8009" protocol= "ajp/1.3" redirectport= "8443"/>
So you can.
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/web/