Skip to content

Instantly share code, notes, and snippets.

@frontend-3
Last active September 26, 2016 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frontend-3/661b2fc8d3d8fbc0a41fce4e67811c65 to your computer and use it in GitHub Desktop.
Save frontend-3/661b2fc8d3d8fbc0a41fce4e67811c65 to your computer and use it in GitHub Desktop.
# 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