sexta-feira, julho 29, 2005

descobrir o pid atraves da porta lsof -i:80

Mostra ai o processo que est?na porta X
lsof -i:80

resultado:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 401 root 16u IPv4 0x3000132c2f8 0t0 TCP *:80 (LISTEN)
httpd 443 nobody 16u IPv4 0x3000132c2f8 0t0 TCP *:80 (LISTEN)
httpd 444 nobody 16u IPv4 0x3000132c2f8 0t0 TCP *:80 (LISTEN)
httpd 445 nobody 16u IPv4 0x3000132c2f8 0t0 TCP *:80 (LISTEN)
httpd 448 nobody 16u IPv4 0x3000132c2f8 0t0 TCP *:80 (LISTEN)
httpd 449 nobody 16u IPv4 0x3000132c2f8 0t0 TCP *:80 (LISTEN)
httpd 22128 nobody 16u IPv4 0x3000132c2f8 0t0 TCP *:80 (LISTEN)
httpd 22129 nobody 16u IPv4 0x3000132c2f8 0t0 TCP *:80 (LISTEN)
httpd 22130 nobody 16u IPv4 0x3000132c2f8 0t0 TCP *:80 (LISTEN)
httpd 22140 nobody 16u IPv4 0x3000132c2f8 0t0 TCP *:80 (LISTEN)

Nenhum comentário: