配置Javaweb时报错出现:
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).
1.cmd
2.tasklist|findstr “查询出的 listening”,刚才查到的20312
3.taskkill /f /t /im 查询占用程序名称,查到的是javaw.exe
(注意加空格)
然后就可以正常运行了