Created
December 12, 2020 17:14
-
-
Save wesleylhandy/9290b86ed064aacaea65618dc28bcc54 to your computer and use it in GitHub Desktop.
Script to kill process on a given port, 8000 given here for example; see https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac#comment31492591_3855359
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
lsof -t -i tcp:8000 | xargs kill |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment