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

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.

3、设置 任务管理器 下 对 进程PID的的查看
    打开 任务管理器 - 查看 - 选择列 - 勾选 PID(进程标识符)

原文地址:https://www.cnblogs.com/freeliver54/p/2153021.html