Skip to content

Instantly share code, notes, and snippets.

@calvinchoy
Last active August 29, 2015 13:57
Show Gist options
  • Save calvinchoy/5485f2c66a127377877a to your computer and use it in GitHub Desktop.
Save calvinchoy/5485f2c66a127377877a to your computer and use it in GitHub Desktop.
sh - close process on port
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