• Tomcat 80端口启动 必须是root


        <!-- 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 80
        -->
        <Connector port="80" protocol="HTTP/1.1"
                   connectionTimeout="20000"
                   redirectPort="8446" />
        <!-- A "Connector" using the shared thread pool-->
        <!--
    
    
    
    
    
    v-lhb-app01:/root# ps -ef | grep java
    tomcat   22994     1  3 12:38 pts/2    00:00:36 /usr/java/jdk1.8.0_20/bin/java -Djava.util.logging.config.file=/usr/local/apache-tomcat-7.0.55_8083/conf/logging.properties -
    
    Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/local/apache-tomcat-7.0.55_8083/endorsed -classpath /usr/local/apache-tomcat-
    
    7.0.55_8083/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.55_8083/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/apache-tomcat-7.0.55_8083 -Dcatalina.home=/usr/local/apache-tomcat-7.0.55_8083 -
    
    Djava.io.tmpdir=/usr/local/apache-tomcat-7.0.55_8083/temp org.apache.catalina.startup.Bootstrap start
    root     23142 23091  0 12:55 pts/3    00:00:00 grep java
    v-lhb-app01:/root# netstat -nap | grep java
    tcp        0      0 :::8012                     :::*                        LISTEN      22994/java          
    tcp        0      0 ::ffff:127.0.0.1:8008       :::*                        LISTEN      22994/java          
    unix  2      [ ]         STREAM     CONNECTED     3821400 22994/java       
    
    
    换成80端口 只有root启动才有用:
    
    v-lhb-app01:/root# netstat -nap | grep java
    tcp        0      0 :::8012                     :::*                        LISTEN      23275/java          
    tcp        0      0 :::80                       :::*                        LISTEN      23275/java          
    unix  2      [ ]         STREAM     CONNECTED     3827224 23275/java  
    
    http://192.168.32.113/ 访问正常

  • 相关阅读:
    python学习笔记——拾
    python学习笔记——玖
    Python 实现栈与队列
    Vijos1774 机器翻译 [模拟]
    Vijos1788 第K大 [模拟]
    Python 序列求和
    HDU 2102 A计划 DFS与BFS两种写法 [搜索]
    Python 多组输入
    Python 文件读写
    HDU 2068 RPG错排 [错排公式]
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13351713.html
Copyright © 2020-2023  润新知