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