eclipse报错端口占用

Several ports (8005, 80, 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).
我这边报这种错误是eclipse非正常关闭。

按照提示,占用了端口8005 80 8009

运行→cmd进入控制台
输入:netstat -ano命令
查看占用这些端口的pid
进入任务管理器

根据pid结束进程eclipse报错端口占用