Skip to content

Instantly share code, notes, and snippets.

@dev-AshishRanjan
Last active March 7, 2025 09:21
Show Gist options
  • Save dev-AshishRanjan/58fcfd542633133682ddb23ab88fcccd to your computer and use it in GitHub Desktop.
Save dev-AshishRanjan/58fcfd542633133682ddb23ab88fcccd to your computer and use it in GitHub Desktop.
Kill process on port 80
# Kill all processes running on port 80
sudo lsof -t -i tcp:80 -s tcp:listen | sudo xargs kill
# 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