Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kno3comma14/cbfbbb3d6cb5d4acb7ea807d5e94caae to your computer and use it in GitHub Desktop.
Save kno3comma14/cbfbbb3d6cb5d4acb7ea807d5e94caae to your computer and use it in GitHub Desktop.
Look for LISTEN process pid then kill it
sudo lsof -nPi -sTCP:LISTEN
kill -9 <pid>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment