同一服务器部署多个tomcat时,如何避免端口号冲突问题
1.HTTP端口,默认8080,如下改为8081
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="60000"
redirectPort="8443" disableUploadTimeout="false" executor="tomcatThreadPool" URIEncoding="UTF-8"/>
2.远程停服务端口,默认8005,如下改为8006
<Server port="8006" shutdown="SHUTDOWN">......
3.AJP端口,默认8009,如下改为8010
<Connector port="8010" protocol="AJP/1.3" redirectPort="8443" />
保持多个tomcat之间,此三个端口号不相同,tomcat启动的时候就不会出现端口号相互冲突的问题。