修改tomcat8.5或者tomcat7.0中server.xml的端口;
找到tomcat安装路径,C:\XX\apache-tomcat-8.5.9\conf文件夹下的server.xml找到相应的
<Server port="8005" shutdown="SHUTDOWN">改为
<Server port="8015" shutdown="SHUTDOWN">
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />改为
<Connector port="8088" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />改为
<Connector port="8019" protocol="AJP/1.3" redirectPort="8443" />
重新启动就好了!
原文地址:https://www.cnblogs.com/xinxueyou/p/10069244.html
时间: 2024-10-08 03:56:54