Skip to content

Instantly share code, notes, and snippets.

@twilson63
Last active July 14, 2017 11:57
Show Gist options
  • Save twilson63/00eb47e6bdaf7a8ceef9e53ac9934ea8 to your computer and use it in GitHub Desktop.
Save twilson63/00eb47e6bdaf7a8ceef9e53ac9934ea8 to your computer and use it in GitHub Desktop.
Kill a server process running on a specific port
lsof -i TCP:3000 | grep LISTEN | awk '{print $2}' | xargs kill -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment