Skip to content

Instantly share code, notes, and snippets.

@saurav28
Created April 14, 2020 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saurav28/e27fcc7e9c01d3bdb62d11db337b4718 to your computer and use it in GitHub Desktop.
Save saurav28/e27fcc7e9c01d3bdb62d11db337b4718 to your computer and use it in GitHub Desktop.
Kill a single port
kill $(lsof -ti:3000) #3000 is the port to be freed
Source https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment