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