Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tyrel86
Created August 3, 2012 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyrel86/3244540 to your computer and use it in GitHub Desktop.
Save tyrel86/3244540 to your computer and use it in GitHub Desktop.
net stat
root@ID12103:/home/CannaPages# netstat -pln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 787/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 4969/nginx
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 734/sshd
tcp6 0 0 :::22 :::* LISTEN 734/sshd
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 1548 787/mysqld /var/run/mysqld/mysqld.sock
unix 2 [ ACC ] STREAM LISTENING 39479 5281/unicorn.rb -D /home/CannaPages/tmp/sockets/unicorn.sock
unix 2 [ ACC ] STREAM LISTENING 8304 1/init @/com/ubuntu/upstart
unix 2 [ ACC ] SEQPACKET LISTENING 8372 357/udevd /run/udev/control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment