Web server failed to start. Port 9001 was already in use.端口号被占用

Web server failed to start. Port 9001 was already in use.端口号被占用

错误如下:
Web server failed to start. Port 9001 was already in use.端口号被占用_第1张图片
可能是昨天没有正确停服务。直接关掉了idea.所以出现这个问题

解决也非常简单,我这里是直接关闭占用端口的进程

1、点开Terminal,输入命令:netstat -ano | findstr 9001 (这个命令可以记一下,我面试有被两次问到)

2、此命令会显示出进程号,之后直接kill掉即可。命令为:taskkill -F -PID 进程号

Web server failed to start. Port 9001 was already in use.端口号被占用_第2张图片

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