close servie run on port ubuntu code example Example: how to stop running port in ubuntu sudo kill -9 `sudo lsof -t -i:{PORT_NUMBER}`