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).  如图:

Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The serve_第1张图片

一看报错就知道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_第2张图片

你可能感兴趣的:(8080,by,required,ports,tom,several,8009)