command stop service in port 8000 code example Example: stop port in use 8000 kill -9 $(lsof -i TCP:8000 | grep LISTEN | awk '{print $2}')