Windows解决端口号占用的命令

springboot启动项目端口号被频繁占用:

执行如下命令即可:

Microsoft Windows [版本 10.0.17134.950]
(c) 2018 Microsoft Corporation。保留所有权利。

C:\Users\YZ>netstat -ano|findstr 8001
  TCP    0.0.0.0:8001           0.0.0.0:0              LISTENING       20188
  TCP    [::]:8001              [::]:0                 LISTENING       20188

C:\Users\YZ>taskkill /pid 20188 /f /t
成功: 已终止 PID 20188 (属于 PID 12524 子进程)的进程。

C:\Users\YZ>

图片同上:

猜你喜欢

转载自www.cnblogs.com/timingstarts/p/12658219.html