# 项目场景:
Springboot 在启动时出现端口 8888 被占用
# 问题描述:
Springboot 在启动时出现端口被占用
错误提示: | |
Description: | |
Web server failed to start. Port 8888 was already in use. | |
Action: | |
Identify and stop the process that's listening on port 8888 or configure this application to listen on another port. | |
Disconnected from the target VM, address: '127.0.0.1:54879', transport: 'socket' | |
[ERROR] Command execution failed. | |
Command execution failed. |
# 原因分析:
由于之前开启 vue 项目启动,再启动后端时会报错。
# 解决方案:
netstat -aon|findstr "9000" | |
查看端口号运行进程 | |
taskkill /pid 进程号 -f` |