Server Tomcat v7.0 Server at localhost failed to start & 端口占用问题 解决思路

前提:源码无误,设置无误,eclipse中有两个用到tomcat的project,发生bug时第一个已运行过,试图debug第二个project。

第一次报错
使用eclipse,之前由于未响应,通过任务管理器直接关了,debug后报错端口被占用,内容如下
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).

参考该博主的方法1解决了问题 https://blog.****.net/xiaopingga/article/details/84988526

又出现第二次报错,如图(图源其他博主)
Server Tomcat v7.0 Server at localhost failed to start & 端口占用问题 解决思路
解决方法如下
Server Tomcat v7.0 Server at localhost failed to start & 端口占用问题 解决思路
完成后重新右击Tomcat,点击start,问题解决。