Cómo detener un sitio web que se ejecuta en el puerto 8000 o cualquier otro puerto

$ lsof -i TCP:8000 | grep LISTEN #take the number on the second column ex. 794, replace the port number if needed
kill -9 PID_TO_KILL  # replace PID_TO_KILL with the number from above
Yesid Cano Castro