windows下cmd查看端口占用情况,并关闭占用端口进程

版权声明:转载请标明出处 https://blog.csdn.net/martinkeith/article/details/88822020

1.netstat -ano |findstr "3333"

假设返回情况如下:

C:\Users\Administrator>netstat -ano|findstr "3333"
  UDP    0.0.0.0:3333           *:*                                    8524

2.tasklist | findstr "8524"

显示进程名称

3.强制结束进程,其中/f表示强制关闭

taskkill /pid 8524 /f

猜你喜欢

转载自blog.csdn.net/martinkeith/article/details/88822020
今日推荐