在eclipse中运行web项目提示端口被占用
在eclipse中启动Tomcat出现错误提示:
Several ports (8005, 8080, 8009) required by Tomcat v7.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).
解决办法:
在运行输入cmd
- 输入命令netstat -ano|findstr "8080",查看8080端口是否被占用,且得到了进程号“3084”;
- 再输入命令tasklist|findstr "3084",得到进程映像名javaw.exe;
- 启动任务管理器,结束javaw.exe进程;
- 最后再输入命令netstat -ano|findstr "8080",查看8080端口是否被还占用