Check the port occupy on Mac OSX

Posted sonictl

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Check the port occupy on Mac OSX相关的知识,希望对你有一定的参考价值。

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

以上是关于Check the port occupy on Mac OSX的主要内容,如果未能解决你的问题,请参考以下文章

Check whether a remote server port is open on Linux

Kafka use zkCli.sh to check topic offset on linux

解决:The Tomcat connector configured to listen on port 8182 failed to start. The port may already be i

UserWarning: Method on_batch_end() is slow compared to the batch update. Check your callbacks.

SpringBoot运行报错“The Tomcat connector configured to listen on port 80 failed to start.“

Springboot异常--Identify and stop the process that‘s listening on port 9090 or configure this applicat