So if you want to see which ports are currently in use by programs on your linux server you can just call the following command:
Say you want to see what is running on port 8080
lsof -i :8080
Will return the following:
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME java 14046 root 31u IPv6 71535 TCP *:webcache (LISTEN)
Or alternatively use the following:
netstat -a
Or less detailed
netstat -a | grep LISTEN | grep -v unix
By PHPin24 @ 2010-12-15 09:22:26
|