Last active
July 9, 2018 10:27
-
-
Save mathieutu/43750ebf4cf36ef0a8a93d92f3687736 to your computer and use it in GitHub Desktop.
Kill process on specified port.
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
| kill -9 $(lsof -t -i:3000) |
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
| kill -9 `netstat -vanp tcp | grep 3000 | head -n 1 | awk '{ print $9 }'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment