Last active
July 2, 2023 08:02
-
-
Save wosephjeber/4a7cc95c8295b4f1c339f037267ef2c9 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