Skip to content

Instantly share code, notes, and snippets.

@sharepointoscar
Last active May 2, 2020 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sharepointoscar/6772beea817fec054a053c7f38fa25a8 to your computer and use it in GitHub Desktop.
Save sharepointoscar/6772beea817fec054a053c7f38fa25a8 to your computer and use it in GitHub Desktop.
# Find process running on port 8080
lsof -i:8080
# Just kill it
kill -9 $(lsof -t -i:8080)
# find process listening on port 9200
lsof -nP -i4TCP:$PORT | grep LISTEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment