how to kill the process running on port 8000 code example Example: stop port in use 8000 kill -9 $(lsof -i TCP:8000 | grep LISTEN | awk '{print $2}')