Examine which process using the port (lsof)
- カテゴリ:
- Linux
You could also use lsof command to show which process using the specific port. The command accepts multiple port numbers with i option.
# lsof -i :445
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
smbd 2757 root 18u IPv4 5867 TCP *:microsoft-ds (LISTEN)
# lsof -i :445,901
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
xinetd 2655 root 5u IPv4 5630 TCP *:swat (LISTEN)
smbd 2757 root 18u IPv4 5867 TCP *:microsoft-ds (LISTEN)
コメント