(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" />
minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="100" debug="0" connectionTimeout="20000"
useURIValidationHack="false" disableUploadTimeout="true" />
(大概在86行左右)將8080修改爲第一個tomcat不在使用的端口號。此處所設的端口號即是以後訪問web時所用的端口號。
(2) 修改Shutdown端口(默認爲8005端口)
<Server port="8005" shutdown="SHUTDOWN" debug="0">
(大概在13行左右)將8005修改爲沒有在使用的端口號,例如8095
(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" />
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
這樣就沒問題了。