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

PHOTO EMBED

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

Saved by @v1ral_ITS

netstat -anp --numeric-ports | grep ":${PORT}\>.*:" 

fuser -v "${PORT}"/tcp

lsof -P -S 2 -i "tcp:${PORT}" | grep "\(:${PORT}->.*:\|:$PORT (LISTEN)$\)"
content_copyCOPY

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