'Starting Tomcat v8.0 Server at localhost' has encountered a problem

Several ports (8007, 8080, 8009) required by Tomcat v8.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).
'Starting Tomcat v8.0 Server at localhost' has encountered a problem
当时我的Ecplise出现了一个这样错误,
在网上找了下资料,在根据我的经验

我是这样解决的:
解决方法:

在dos 环境下:输入 netstat -ano|findstr 8080

显示8080端口的进程:

查出是哪个进程占用8080端口之后,运行windows自带的taskkill命令,将上面的进程结束:taskkill /pid …/ f

'Starting Tomcat v8.0 Server at localhost' has encountered a problem