starting mongo server code example Example 1: start mongodb sudo systemctl start mongod Example 2: mongodb start server sudo systemctl start mongodb