Last active
March 7, 2025 09:21
-
-
Save dev-AshishRanjan/58fcfd542633133682ddb23ab88fcccd to your computer and use it in GitHub Desktop.
Kill process on port 80
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 all processes running on port 80 | |
| sudo lsof -t -i tcp:80 -s tcp:listen | sudo xargs kill |
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
| # list process_id of the processes running on port 80 | |
| sudo lsof -t -i tcp:80 | |
| # kill the process | |
| sudo kill <PID> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment