IDEA启动springboot/微服务,提示端口被占用Web server failed to start. Port xxxx was already in use.

IDEA启动springboot/微服务,提示端口被占用Web server failed to start. Port xxxx was already in use._第1张图片

 windows电脑解决方案

1.先查看被占用的端口
netstat -ano | findstr :7947
  #7947是你被占用的端口号
 2.效果:

IDEA启动springboot/微服务,提示端口被占用Web server failed to start. Port xxxx was already in use._第2张图片

 3.接着
taskkill /F /pid 10324
# 看你最右边那个端口
4.提示

IDEA启动springboot/微服务,提示端口被占用Web server failed to start. Port xxxx was already in use._第3张图片

5.重新运行项目 IDEA启动springboot/微服务,提示端口被占用Web server failed to start. Port xxxx was already in use._第4张图片

你可能感兴趣的:(spring,boot,微服务,后端,java,运维,spring)