Created
September 2, 2016 21:02
-
-
Save mLuby/97b0b6980eb80f940bb552e0ac8c92bd to your computer and use it in GitHub Desktop.
kill processes running on a 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
test $(uname) == "Darwin" && lsof -t -i tcp:9001 | xargs kill | |
test $(uname) == "Linux" && fuser -k 9001/tcp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment