LoginSignup
245
184

More than 5 years have passed since last update.

Macでポートを開いてるプロセスをkillする方法

Last updated at Posted at 2014-10-09

例えばポート番号 1080 の場合

lsof -i -P | grep 1080

ヒットしたら表示されます。

java  5328 narikei 5u IPv6 0x1d1d1d1d1d1d1d1d1d 0t0  TCP *:1080 (LISTEN)

PIDが分かったのでKILL

kill -9 5328
245
184
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
245
184