Tomcat 双开配置

tomcat_1   server.mxl文件

# 修改端口
<Connector port="8088" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>

# 修改shutdown端口
<Server port="8006" shutdown="SHUTDOWN">

# 修改JDK端口
<Connector port="8010" protocol="AJP/1.3" redirectPort="8443" />

 

tomcat_2  server.mxl文件

# 修改端口
<Connector port="8888" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>

# 修改shutdown端口
<Server port="8005" shutdown="SHUTDOWN">

# 修改JDK端口
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

 

tomcat 窗口名称修改  catalina.bat文件

# 自定义tomcat窗口名称
if "%TITLE%" == "" set TITLE=自定义名称