启动Tomcat时报错,如下错误信息:
Several ports (8060, 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).
解决方案:
被其他进程占用端口
1.在命令提示符下输入如下:
netstat -aon | findstr 8080
然后获得该端口占用的PID的进程(如:27032)信息
2.输入:
tasklist |findstr 27032
可以获得当前端口被javaw.exe占用
3.继续输入:
taskkill /pid 27032 /F
或者
taskkill -F -|M javaw.exe
结束该进程
再次在eclipse工具中启动tomcat正常。