LearnApplyShare

[mac] 열린 포트 확인

May 17, 2018 - [mac, lsof]

아래와 같이 lsof 명령으로 확인

$ sudo lsof -i :7005
COMMAND   PID      USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
java    72631    user01   57u  IPv6 0x5973dd9e9c2d668d      0t0  TCP localhost:afs3-volser (LISTEN)
$ kill -9 72631
$ sudo lsof -i :7005
$ 

Ref.

http://new93helloworld.tistory.com/138