Created
October 6, 2014 08:13
-
-
Save pajcho/5bf55f73263897492817 to your computer and use it in GitHub Desktop.
Check processes that listen on a port and kill them
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsof -n -i4TCP:$PORT | grep LISTEN | |
sudo killall $PROCESS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment