Quick Retrieve on Google     Quick Retrieve on Bing

Combine Art and Sciences

Blogs transfered from: blog.csdn.net/sonictl

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Check the port occupy on Mac OSX

lsof -i :7070

          COMMAND   PID USER   FD   TYPE    DEVICE SIZE/OFF NODE NAME
          sivoxy    64888   wgg    6u  IPv4 0x6ddd270      0t0  TCP *:gds_db (LISTEN)

We have the PID of that app occupying port.

Locating the executable file of that PID

ps xuwww -p PID

PID (64888) is the process id you are looking. for More help on pscommand you can find with

man ps

posted on 2019-10-06 17:23  sonictl  阅读(266)  评论(0编辑  收藏  举报