Created
June 6, 2016 21:15
-
-
Save remarkablemark/2c2e0aed96fee28b8d8db8cc70654aa2 to your computer and use it in GitHub Desktop.
Kill a port that's already in use.
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # for Mac OS X, kill processes associated with port 8000 | |
| sudo lsof -t -i tcp:8000 | xargs kill -9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment