您的位置:首页 > 编程语言 > Java开发

SpringBoot启动时Caused by: java.net.BindException: Address already in use: bind

2020-04-07 15:40 120 查看

启动springboot时报Caused by: java.net.BindException: Address already in use: bind

Description:

Web server failed to start. Port 20005 was already in use.

Action:

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

 

打开cmd命令窗口

C:\Users\Administrator>netstat -ano|findstr 20005
  TCP    0.0.0.0:20005          0.0.0.0:0              LISTENING       9348
  TCP    [::]:20005             [::]:0                 LISTENING       9348

C:\Users\Administrator>taskkill /pid 9348/f
错误: 没有找到进程 "9348/f"。

C:\Users\Administrator>taskkill /pid 9348 /f
成功: 已终止 PID 为 9348 的进程。

20005端口即被占用的端口。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐