how to run mongodb service 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
sudo systemctl start mongod
sudo systemctl start mongod
sudo systemctl stop mongod