Tomcat端口被占用:Several ports (8005, 8080, 8009) required by Tomcat v8.0 Server at localhost are already
Tomcat端口被占用
是个老问题了,时不时就会出现,今天又遇到了,就简单记录一下这个问题的解决方式。
启动项目报错
Several ports (8005, 8080, 8009) required by Tomcat v8.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).
首先 win + R ,键入cmd ,再Enter
输入 netstat -ano|findstr 8080 查看8080端口的占用情况
netstat -ano|findstr 8080
再使用 taskkill /pid 9172 /f 杀掉进程即可
taskkill /pid 9172 /f
即可正常启动