how to install and configure mongodb on ubuntu 18.04 code example Example: start mongodb service ubuntu sudo systemctl start mongod sudo systemctl stop mongod