linux - Kill process running on port 80 - Unix & Linux Stack Exchange

PHOTO EMBED

Wed Jan 22 2025 19:13:20 GMT+0000 (Coordinated Universal Time)

Saved by @v1ral_ITS

echo kill $(sudo netstat -anp | awk '/ LISTEN / {if($4 ~ ":80$") { gsub("/.*","",$7); print $7; exit } }')
content_copyCOPY

https://unix.stackexchange.com/questions/244531/kill-process-running-on-port-80