1、默认配置 8080端口
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000"
redirectPort="8443" />
这段代码规定了Tomcat监听HTTP请求的端口号为 8080,连接超时为20秒,重定向端口8443
2、修改默认8080端口配置为 -> 80端口
修改Tomcat下conf/server.xml 文件
[victor@hadoop102 ~]$ cd /opt/module/tomcat
[victor@hadoop102 tomcat]$ vim conf/server.xml
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000"
redirectPort="8443" />