与此同时跑两个Tomcat
同时跑两个Tomcat在一台机子上同时跑两个Tomcat,要注意的是端口的冲突问题.修改下面三处地方就可以了:?(1)
同时跑两个Tomcat
在一台机子上同时跑两个Tomcat,要注意的是端口的冲突问题.修改下面三处地方就可以了:
?
(1) 修改http访问端口(默认为8080端口)
<Connector???className="org.apache.coyote.tomcat4.CoyoteConnector"???port="8080"??
???????????????????????????????minProcessors="5"???maxProcessors="75"???
????????????????????????????????enableLookups="true"???redirectPort="8443"???
????????????????????????????????acceptCount="100"???debug="0"???connectionTimeout="20000"???
????????????????????????????????useURIValidationHack="false"???disableUploadTimeout="true"???/>?
(2) 修改Shutdown端口(默认为8005端口)<Server?port="8005"?shutdown="SHUTDOWN"?debug="0">
(3) 修改JVM启动端口(默认为8009端口)?? < Connector??? className ="org.apache.coyote.tomcat4.CoyoteConnector"????
????????????????????????????????port ="8009" ???minProcessors ="5" ???maxProcessors ="75"????
????????????????????????????????enableLookups ="true" ???redirectPort ="8443"????
????????????????????????????????acceptCount ="10" ???debug ="0" ???connectionTimeout ="20000"???
????????????????????????????????useURIValidationHack ="false"????
???????????????????????????????protocolHandlerClassName ="org.apache.jk.server.JkCoyoteHandler" />