修改server.xml配置和第一个不同的启动、关闭监听端口。
修改后示例如下:
<Server port="8006" shutdown="SHUTDOWN"> 端口:8005->8006
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector port="8081" maxHttpHeaderSize="8192" 端口:8080->8081
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8010" 端口:8009->8010
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />