• 更改Tomcat的Port号


     

    1. Locate server.xml in {Tomcat installation folder}\ conf \

     

    2. Find following similar statement

    <!-- Define a non-SSL HTTP/1.1 Connector on port 8180 -->

        <Connector port="8080" maxHttpHeaderSize="8192"

                   maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

                   enableLookups="false" redirectPort="8443" acceptCount="100"

                   connectionTimeout="20000" disableUploadTimeout="true" />

    or

    <!-- A "Connector" represents an endpoint by which requests are received

             and responses are returned. Documentation at :

             Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)

             Java AJP  Connector: /docs/config/ajp.html

             APR (HTTP/AJP) Connector: /docs/apr.html

             Define a non-SSL HTTP/1.1 Connector on port 8080

        -->

        <Connector port="8080" protocol="HTTP/1.1" 

                   connectionTimeout="20000" 

                   redirectPort="8443" />

    3. About Tomcat’s server.xml file cites it’s runs on port 8080. Change the Connector port=”8080″ port to any other port number.

        For example

    <Connector port="8181" protocol="HTTP/1.1" 

                   connectionTimeout="20000" 

                   redirectPort="8443" />

        Above statement instruct Tomcat server runs on port 8181.

    4. Edit and save the server.xml file. Restart Tomcat.

     Done

  • 相关阅读:
    CentOS7.5右键创建空白文档
    CentOS7.5安装配置conky(极简)
    CentOS7.5安装nodejs
    CentOS7.5安装网易云音乐
    CentOS7.5删除旧的内核
    CentOS7.5安装notepadqq
    CentOS7英文环境下使用中文输入法
    CentOS7安装Pycharm后无法使用日常的快捷键
    tomcat的work目录作用
    ORACLE获取某个时间段之间的月份列表
  • 原文地址:https://www.cnblogs.com/puloieswind/p/15723844.html
Copyright © 2020-2023  润新知