Created
September 29, 2017 19:00
-
-
Save JosielFaleiros/03a79a931bdfe5dae812b6f0e333ca87 to your computer and use it in GitHub Desktop.
to kill a process running on 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
To list any process listening to the port 8080: | |
lsof -i:8080 | |
To kill any process listening to the port 8080: | |
kill $(lsof -t -i:8080) | |
or more violently: | |
kill -9 $(lsof -t -i:8080) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment