SBDavid
Jul 28th, 2009
Jul 28th, 2009
see all tcp sockets currently open
In order to see all TCP sockets currently open, run (as root).
# lsof -i TCP
If all of the sockets in question on your webserver port (port 80), you should be able to list only those with
# lsof -i TCP:80
lsof is another tool for locating open files. lsof (no options) will list all files opened by any processes currently running. To restrict this to processes owned by username, use
lsof -u username.