LoginSignup
1
1

More than 5 years have passed since last update.

特定のportを使っているプロセスを調べる

Last updated at Posted at 2018-09-09

Docker とか使ってると知らぬ間に port を使ってたりして競合するので、落とさねばならぬときがあります。

下記は Port 80 を使ってるプロセスを調べる場合。

console
$ sudo lsof -i:80
COMMAND PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
httpd    83 root    4u  IPv6 0xab09e559c80cd03d      0t0  TCP *:http (LISTEN)
httpd   454 _www    4u  IPv6 0xab09e559c80cd03d      0t0  TCP *:http (LISTEN)
1
1
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
1
1