Reprint: http://blog.csdn.net/xinxin19881112/article/details/6148507
Problem Description:
Start Tomcat Server error:
Several ports (8005, 8080, 8009) required by Tomcat v5.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).
Reason:
Port 8005, 8080, 8009 are occupied. It is possible that eclipse was turned off with Tomcat turned on, or that eclipse was shut down abnormally, causing the previous tomcat not to be closed and the port occupied. or other software that takes up the Tomcat's port number.
Workaround:
Method 1: Kill the port-hogging software
Open Task Manager, locate the Java Virtual machine-related process javaw.exe, and end it. If the problem is not resolved, look down.
If there is no such process, it may be that other software is taking up the port.
In the Start menu-> run->cmd-> enter Netstat-ano or Netstat-an | The grep 8080 command lets you see which process occupies 8080 and 8009 ports, finds the PID for the Port software, and then finds the software that corresponds to the PID in Task Manager and closes the process. If the PID column is not displayed in Task Manager, you need to set it up, view---Select column---, and tick the PID (process identifier).
Method 2: Modify the Tomcat default port number
Modify the Tomcat configuration file.
For example:
C:/tomcat5.5.25/conf/server.xml
<connector port= "8080" maxhttpheadersize= "8192"
maxthreads= "minsparethreads=" maxsparethreads= "75"
Enablelookups= "false" redirectport= "8443" acceptcount= "100"
connectiontimeout= "20000" disableuploadtimeout= "true"/>
Connector node, change the port in port= "8080" to a port that is not occupied.