ubuntu 19.10 mongodb repository file code example Example: start mongodb service ubuntu sudo systemctl start mongod sudo systemctl stop mongod