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