I'd like to be able to find out which process is currently using a certain port in Linux. Is there any way to do this?
Answer
You have a couple of options:
lsof -i tcp:80
will give you the list of processes using tcp port 80.
Alternatively,
sudo netstat -nlp
will give you all open network connections.
No comments:
Post a Comment