cmd netstat 查看某监听端口 对应的Process ID 及使用taskkill 中止某进程

linux的命令可测比较熟,但windows却很生

1、查看某监听端口 对应的process ID

C:\Users\admin>netstat -a -o -n |findstr 0.0:2011
  TCP    0.0.0.0:2011           0.0.0.0:0              LISTENING       2848



2、 taskkill /?


taskkill /f /im notepad.exe

Kills the open notepad task, if open.

taskill /pid 9764

Kill the task with PID 9764.

猜你喜欢

转载自love398146779.iteye.com/blog/2098691