多个Tomcat服务器同时启动配置

多个Tomcat Servers同时启动,需要修改conf/server.xml配置文件中的端口号,使多个Servers间的端口号互相不冲突。

Tomcat Server运行时只占用以下3个端口:

  • HTTP端口:8080
  • AJP端口:8009
  • SHUTDOWN端口:8005
增加新的Tomcat Server实例时,只需在%TOMCAT_HOME%/ conf/server.xml配置文件中,修改上述3个端口号,保证与其他Server的端口号不冲突即可。具体文件中的修改位置如下:
<Server port="8005" shutdown="SHUTDOWN">
... ...

 <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000"
               redirectPort="8443" />
... ...

 <!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
... ...
 
 

猜你喜欢

转载自yyjlinux.iteye.com/blog/1691897