Find out what's running on a specific port (e.g., port 8000):
lsof -i :8000
Kill the process running on a specific port (e.g., port 8000):
kill -9 $(lsof -t -i:8000)