What process is using this port?
Find the process using port 8080:
# netstat -tlpn | grep 8080
tcp 0 0 1.2.3.4:8080 0.0.0.0:* LISTEN 7561/nginx
# ls -l /proc/7561/exe
lrwxrwxrwx root root Nov 4 8:14 /proc/7561/exe -> /usr/local/sbin/nginx
/usr/local/sbin/nginx is using port 8080 on 1.2.3.4.
Written by Anders Brownworth
Related protips
1 Response
I have the command where
aliased to netstat -tulpna|grep ssh
so I can quickly see all my open SSH connections.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#