首页 > 代码库 > Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The serve
Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The serve
今天用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是啥,我只能让你百度了。。。
解决问题的截图:
Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The serve
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。