<!-- 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/ 访问正常