This weekend I was trying to run a server on port 9000 but something was already on there. I had no idea what it was and needed to find and stop it. Here’s a super quick and easy way to do so:
You’ll need lsof:
sudo apt-get install lsof lsof -iTCP:9000
The result I got was as follows:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME komodo-bi 31713 myuser 51u IPv4 1234567 0t0 TCP *:9000 (LISTEN)
From there it was as simple as going into komodo and turning turning off its listener 🙂
Thanks to Laran Evans for his useful tutorial.