Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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