Tomcat端口被占用:Several ports (8005, 8080, 8009) required by Tomcat v8.0 Server at localhost are already

Tomcat端口被占用是个老问题了,时不时就会出现,今天又遇到了,就简单记录一下这个问题的解决方式。
Tomcat端口被占用:Several ports (8005, 8080, 8009) required by Tomcat v8.0 Server at localhost are already_第1张图片
启动项目报错

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
Tomcat端口被占用:Several ports (8005, 8080, 8009) required by Tomcat v8.0 Server at localhost are already_第2张图片
输入 netstat -ano|findstr 8080 查看8080端口的占用情况

netstat -ano|findstr 8080

再使用 taskkill /pid 9172 /f 杀掉进程即可

taskkill /pid 9172 /f

Tomcat端口被占用:Several ports (8005, 8080, 8009) required by Tomcat v8.0 Server at localhost are already_第3张图片
即可正常启动
Tomcat端口被占用:Several ports (8005, 8080, 8009) required by Tomcat v8.0 Server at localhost are already_第4张图片

你可能感兴趣的:(Web,bug日记,tomcat,java,服务器,端口占用)