有比较多的人看到URL中的8080很是不爽,强烈要求我在输入URL的时候不输这个端口号,那我只好修改了,只要做一件事情就好
修改 $CATALINA_HOME/conf/server.xml
将67的代码中的 8080 改为 80
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
=>
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
重启Tomcat生效
修改 $CATALINA_HOME/conf/server.xml
将67的代码中的 8080 改为 80
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
=>
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
重启Tomcat生效