Skip to content

Instantly share code, notes, and snippets.

@wosephjeber
Last active July 2, 2023 08:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wosephjeber/4a7cc95c8295b4f1c339f037267ef2c9 to your computer and use it in GitHub Desktop.
Save wosephjeber/4a7cc95c8295b4f1c339f037267ef2c9 to your computer and use it in GitHub Desktop.
Find and kill ruby process using specified port
# Puma occasionally doesn't kill all ruby processes when
# I shut down my local web server. Here are the steps
# to find and kill the processes.
# Find pid of process running on specified port
lsof -i :3000
# Kill process
sudo kill -9 [pid]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment