Window下Tomcat端口被占用(Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are)

问题:Eclipse中启动Tomcat时,遇到端口占有问题。

Window下Tomcat端口被占用(Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are)_第1张图片

解决方案:

window下打开命令窗口(win+R)→输入cmd:

输入 netstat -ano|findstr 8080(那个端口被占有,就输入那个端口),回车

再次输入 taskkill /pid 12712/f(12712对应上图的12712 ),回车。 结束进程,重新启动Tomcat即可正常启动。  

Window下Tomcat端口被占用(Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are)_第2张图片

----------------------------------------------------------------------------------------------------------------------------------------------

2019-2-5 更新

 找到Tomcat中bin目录中,shutdown.bat进行关闭Tomcat。再次重新启动即可。

你可能感兴趣的:(【JavaWeb】)