在Windows下查看端口对应进程

1. window+R 组合键,调出命令行窗口。

KBWinR.png

2. 在命令行输入netstat -ano输出当前运行的所有端口。

WindowsPortsPID1.png

3. 使用命令netstat -aon | findstr "3236" 查看被占用端口对应的 PID
   

WindowsPortsPID2.png

4. 使用命令tasklist | findstr "3236"查看指定 PID 的进程,显示YodaoDict.exe占用了3236端口。

WindowsPortsPID3.png

5. 如需强制结束此进程,可使用taskkill /T /F /PID 3236

WindowsPortsPID4.png