Tuesday, May 24, 2011

Check process running on particular port

3 ways to check process running on particular port :
==================================

root@ubuntu:/ubuntu# lsof -w -n -i tcp:8080
COMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
tnslsnr 1401 oracle   13u  IPv4  10064      0t0  TCP *:http-alt (LISTEN)

root@ubuntu:/ubuntu# fuser -n tcp 8080
8080/tcp:             1401

root@ubuntu:/ubuntu# netstat -anp|grep :8080
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      1401/tnslsnr   
root@ubuntu:/ubuntu#

No comments:

Post a Comment