Skip to content

Instantly share code, notes, and snippets.

@ypolosov
Last active February 8, 2018 09:25
Show Gist options
  • Save ypolosov/ec058052a57f0c0b10b72ef8651aaeae to your computer and use it in GitHub Desktop.
Save ypolosov/ec058052a57f0c0b10b72ef8651aaeae to your computer and use it in GitHub Desktop.
how to know who uses a port
sudo netstat -nlp|grep ':27017'
or
kill $(lsof -t -i:27017)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment