linux mongo start code example Example 1: linux start mongodb sudo systemctl start mongod Example 2: ubuntu start mongodb sudo mongod --fork --config /etc/mongod.conf