sept 08
22
Trouver le processus qui utilise un port réseau sur linux
Leave a comment »
[root@linux]# netstat -tlnp | grep 8021
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 :::8021 :::* LISTEN 6303/java
[root@lnx2615 init.d]# ps -ef | grep 6303
root 6303 6287 6 15:38 pts/0 00:00:54 /usr/java/j2sdk1.4.2/bin/java
Deuxième façon :
[root@linux]# lsof -i | grep 8091
java 6303 root 40u IPv6 64805 TCP *:8091 (LISTEN)