您的位置:首页 > 运维架构 > Tomcat

Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The serve

2015-01-08 15:14 811 查看
今天用eclipse调试程序,eclipse卡死,我就在任务管理器将eclipse任务结束了。结果重新打开eclipse时,启动tomcat时候一直报8080端口被占用如下错误:

Several ports (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端口被占了,去任务管理器找到“javaw.exe”,然后结束掉就好了。但是找不到这个“javaw.exe”,所以解决办法就来了。

1、在cmd命令行中输入 netstat -ano |findstr 8080

2、然后输入:taskkill /pid 4884 /f

其中第二个步骤中pid后面的参数是相应的端口的pid。你要问我啥是pid,我是百度的,而且我看了看还忘了pid是啥,我只能让你百度了。。。

解决问题的截图:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐