日々精進

新しく学んだことを書き留めていきます

Windowsでlsofする(ポートを使っているプロセス名を調べる)

netstat -aon | findstr 0.0:<ポート番号>で出たプロセス番号をtasklist | findstr <プロセス番号>に渡すとわかる。 Macよりちょっとめんどいなぁ。

参考:

https://diary.sshida.com/20120701-Windows%207%E3%81%A7lsof%20-i%3A80%E3%81%A8%E5%90%8C%E3%81%98%E3%82%88%E3%81%86%E3%81%AB%E3%83%9D%E3%83%BC%E3%83%88%E7%95%AA