Last active
September 26, 2016 16:34
-
-
Save frontend-3/661b2fc8d3d8fbc0a41fce4e67811c65 to your computer and use it in GitHub Desktop.
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
# Get the pid | |
sudo netstat -ap | grep :port | |
lsof -n -i:port | grep LISTEN | |
# osx | |
lsof -i -P | grep -i "listen" | |
#Kill the process | |
kill pid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment