实现一台机器上运行多个tomcat的方法可以对Tomcat_Home下的conf文件夹下的server.xml文件进行如下配置:
(1)修改http访问端口(默认为8080端口):
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
(2)修改Shutdown端口(默认为8005端口):
<Server port="8005" shutdown="SHUTDOWN">
(3)修改JVM启动端口(默认为8009端口):
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />