Last active
August 29, 2015 13:57
-
-
Save calvinchoy/5485f2c66a127377877a to your computer and use it in GitHub Desktop.
sh - close process on 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
This `fuser 8080/` will print you PID of process bound on that port. | |
And this `fuser -k 8080/tcp` will kill that process. | |
Woks on Linux only. More universal is use of lsof -i4 (or 6 for IPv6). | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment