Embedded servlet container failed to start. Port 8080 was already in use.

***************************
APPLICATION FAILED TO START
***************************

Description:

Embedded servlet container failed to start. Port 8080 was already in use.

Action:

Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.

1.打开cmd(window+R 输入cmd)

2.执行netstat -ano 列出所有端口的情况。

找到被占用的 如6071,可得到该进程PID为11268

Embedded servlet container failed to start. Port 8080 was already in use._第1张图片

3.通过命令tasklist|findstr “pid” 查看进程名

在这里插入图片描述

4.打开任务管理器,切换到进程选项卡

根据PID或进程定位到程序,点击结束进程即可。
Embedded servlet container failed to start. Port 8080 was already in use._第2张图片
如没有PID列,可以右击列名称,点击选择列。
Embedded servlet container failed to start. Port 8080 was already in use._第3张图片
勾选PID,点击确定即可。

Embedded servlet container failed to start. Port 8080 was already in use._第4张图片

你可能感兴趣的:(java,cmd,java,intellij,idea)