Encontrando um processo(server) pela porta do socket

Existem momentos em que você quer saber qual o processo (PID) está com um socket aberto em uma porta específica, digamos 4000. Neste caso, para o encontrar o dito cujo, basta digitarmos:

$ lsof -i:4000
COMMAND   PID   USER   FD   TYPE    DEVICE SIZE/OFF NODE NAME
ruby    46391 edsono    3u  IPv4 0xaeaf66c      0t0  TCP *:terabase (LISTEN)
  1. Hallison Batista says:

    É necessário instalar o pacote ... mas o comando é excelente. Existe um glsof, que é uma interface gráfica usando o GTK2.

  2. TashaFernandez says:

    If you're in a not good position and have got no money to get out from that point, you will need to take the <a href="http://bestfinance-blog.com">loans</a>. Because that would aid you definitely. I get consolidation loans every time I need and feel myself great just because of this.

Post a comment


(lesstile enabled - surround code blocks with ---)