Wednesday, September 28, 2011

How to figure out in Terminal the process on a specific port

In order to figure out the current process on a specific port use this command (for example ports 8888 and 9997):


lsof -w -n -i tcp:8888
kill -9 enter here the PID


lsof -w -n -i tcp:9997
kill -9 enter here the PID

No comments: