Today, an Eclipse development environment was built on the test server, and then a small program was written and posted to tomcat. Because there is already a tomcat7.0 on the service, and Eclipse builds a tomcat8.5, an error is reported when the tomcat8.5 is started, as follows:
Several ports (8005, 8080, 8009) required by Tomcat v8.5 Server at localhost are. The server may already is running in another process, or a system process may is using the port. To start this server you'll need to stop the other process or change the port number (s).
English is not very good, but it doesn't look too difficult. Prompt Port 8005,8080,8009 is occupied, two solutions:
One, the service tomcat7.0 stop, this one does not recommend;
Modifying the port of Server.xml in tomcat8.5 or tomcat7.0;
Locate the Tomcat installation path and the Server.xml in the C:\XX\apache-tomcat-8.5.9\conf folder find the corresponding
<server port= "8005" shutdown= "shutdown" > read
<server port= "8015" shutdown= "Shutdown" >
<connector port= "8080" protocol= "http/1.1" connectiontimeout= "20000" redirectport= "8443"/> to read
<connector port= "8088" protocol= "http/1.1" connectiontimeout= "20000" redirectport= "8443"/>
<connector port= "8009" protocol= "ajp/1.3" redirectport= "8443"/> instead
<connector port= "8019" protocol= "ajp/1.3" redirectport= "8443"/>
Just reboot.