eclipse tomcat报Several ports(8005 8080 8009)端口被占用问题解决方案

在启动tomcat的时候eclipse突然报错
Several ports (8005,8080,8009) required by Tomcat v6.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).
在这里插入图片描述

可以判断8080、8009端口已经被占用,通过以下方法,找出被哪个进程占用:
在命令提示符下,输入netstat -aon | findstr 8080
在这里插入图片描述

获得该端口被PID为1052的进程占用

输入tasklist |findstr 1052
在这里插入图片描述

可以获得当前端口被java.exe占用
继续输入taskkill -F -IM java.exe或taskkill /pid 1052 /F
结束该进程
在这里插入图片描述
再次在eclipse中启动tomcat正常
在这里插入图片描述

posted @ 2019-01-11 16:40  向上的蜗牛  阅读(1076)  评论(0编辑  收藏  举报