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

最近在用eclipse开发中不只一次遇到这个问题,特此记之,方便以后查阅。
Several ports (8005, 8080, 8009) required by Tomcat v7.0 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).
Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.
1. 在dos下,输入 netstat -ano|findstr 8080
//说明:查看占用8080端口的进程,显示占用端口的进程
Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.
2.taskkill /pid 6640 /f
Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.