Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bard86/d109cf853698aa8e660aa45cc209b6e5 to your computer and use it in GitHub Desktop.
Save bard86/d109cf853698aa8e660aa45cc209b6e5 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