修改tomcat8.5或者tomcat7.0中server.xml的端口;
找到tomcat安装路径,C:XXapache-tomcat-8.5.9conf文件夹下的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" />
重新启动就好了!