同时启动多个Tomcat服务器的配置

修改server.xml中的端口为空闲端口:

(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" />

修改catalina.bat中的dt_socket端口:

可以在启动tomcat查看当前的端口,第一句信息就是:
Listening for transport dt_socket at address: 2005

posted on 2012-06-23 17:31  垦荒牛  阅读(290)  评论(0编辑  收藏  举报