所用Tomcat服务器都为zip版,非安装版。以两个为例:

    安装第二个Tomcat完成后,到安装目录下的conf子目录中打开server.xml文件,查找以下三处:

    (1)修改http访问端口(默认为8080端口)

    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端口)

    (大概在13行左右)将8005修改为没有在使用的端口号,例如8095

    (3)修改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" />

    (大概在107行左右)将8009修改为没有在使用的端口号,例如8099

相关文章:

  • 2022-02-26
  • 2021-11-28
  • 2021-12-17
  • 2021-11-16
  • 2022-12-23
  • 2021-11-20
  • 2022-02-03
猜你喜欢
  • 2022-01-26
  • 2021-12-30
  • 2021-07-26
  • 2022-01-06
  • 2022-03-04
  • 2021-11-28
  • 2022-12-23
相关资源
相似解决方案