雖然是在 Windows 10 上實作,但是,相信對 Windows 7 應該也是 work 的~~~
先在 Linux 上,使用 nmap,scan Windows 10
在 Windows 10,以【系統管理員身分】,執行 cmd
netstat -nao | find “0.0.0.0:1801″,找到 PID 2928 佔用 TCP(1801)
tasklist /fi “pid eq 2928″,查詢 PID 2928 到底是誰?
taskkill /pid 2928 /F,強制停止 PID 2928
再次確認 TCP(1801) 已經沒有使用
從遠端的 Linux,再用 nmap 掃描,確認 TCP(1801) 已經沒有在 standby 了~~~
參考網址:
http://blog.xuite.net/cadmus.lin/yo/43386562-【系】如何查詢哪個程式佔用了指定Port
多謝!