Window 查看网络连接常用命令[转]
- 查看活动连接
- netstat -na -o
- 根据PID获得运行程序的路径及程序名等
- wmic process get name,executablepath,processid|findstr 加上PID
- 参考《https://www.iteye.com/topic/1117270》
- 查看指定端口的占用情况
- C:\>netstat -aon|findstr "9050"
- 查看PID对应的进程
- C:\>tasklist|findstr "2016"
- 映像名称 PID 会话名 会话# 内存使用
- ========================= ======== ================
- tor.exe 2016 Console 0 16,064 K
- 结束该进程
- C:\>taskkill /f /t /im tor.exe