Sunday, July 16, 2017

Finding the PID of the process using a specific port

lsof -n -i :80 | grep LISTEN
nginx   125004 nginx    3u  IPv4   6645      0t0  TCP 0.0.0.0:80 (LISTEN)

netstat -tulnp |grep 1011

No comments:

Post a Comment