Several ports (8005, 8080, 8009) required by Tomcat Server at localhost are already in use.

A super detailed tutorial: springboot integrates mybatis plus>>>

Original text http://blog.csdn.net/xinxin19881112/article/details/6148507

Starting Tomcat server reported an error:

Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

Reason: ports 8005, 8080, 8009 are occupied. It may be that eclipse was shut down when Tomcat was opened, or that eclipse was shut down abnormally, resulting in the previous Tomcat not being shut down and the port occupied. Or other software takes up the port number of Tomcat

solution:
method 1: kill the software that occupies the port

first of all, let’s see if other Java programs that need to run the server are on. For example, the last debugged project is still running in the background, two eclipses are on, or idea is on, and eclipse is on. In this case, turn off the others

open the task manager, find the Java virtual machine related process javaw.exe, and end it. If the problem is not solved, look down
if there is no such process, other software may occupy the port
in the start menu – > Run – > cmd-> Enter the command netstat – ano or netstat – an | grep 8080 to see which process occupies ports 8080 and 8009, find the PID of the software occupying the port, and then find the corresponding PID software in the task manager, close and end the process. If the PID column is not displayed in the task manager, you need to set it. Check the select column and check PID (process identifier)

method 2: modify the default port number of Tomcat

Modify the Tomcat configuration file
for example: C/tomcat5.5.25/conf/server.xml
& lt; Connector port=”8080″ maxHttpHeaderSize=”8192″
maxThreads=”150″ minSpareThreads=”25″ maxSpareThreads=”75″
enableLookups=”false” redirectPort=”8443″ acceptCount=”100″
connectionTimeout=”20000″ disableUploadTimeout=”true” />

Connector node, change the port in port = “8080” to an unoccupied port

Similar Posts: