-
-
Save twhite96/66794c9f74e328d0e2d26e92e0fcecaf to your computer and use it in GitHub Desktop.
Find and kill ruby process using specified port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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