如何在同一台主机上启动两个以上的tomcat
安装第二个tomcat完成后,到安装目录下的conf子目录中打开server.xml文件,查找以下三处:(1) <Server port= "8005 " shutdown= "SHUTDOWN " debug= "0 ">
(大概在13行左右)将8005修改为没有在使用的端口号,例如8095
(2)<ConnectorclassName= "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 " />
(大概在86行左右)将8080修改为第一个tomcat不在使用的端口号。此处所设的端口号即是以后访问web时所用的端口号。
(3) <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 "/>
(大概在107行左右)将8009修改为没有在使用的端口号,例如8099
修改这三个地方就可以了
页:
[1]