Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 563 Bytes

修改默认端口号.md

File metadata and controls

25 lines (17 loc) · 563 Bytes

修改默认的端口号

tomcat的端口配置主要在${tomcat_home}/conf/server.xml中,如果修改端口号,最好将下面三个位置同时修改。

  1. 修改server标记

    <Server port="8005" shutdown="SHUTDOWN">
    </Server>
  2. 修改web端口

    <Connector port="8080" protocol="HTTP/1.1"
                   connectionTimeout="20000"
                   redirectPort="8443" />
  3. 修改AJP端口

    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />