how to update mongodb version in ubuntu 18.04 in terminal code example Example: start mongodb service ubuntu sudo systemctl start mongod sudo systemctl stop mongod