start mongodb sudo command line automatically code example
Example 1: mongodb start server
sudo systemctl start mongodb
Example 2: ubuntu start mongodb
sudo mongod --fork --config /etc/mongod.conf
sudo systemctl start mongodb
sudo mongod --fork --config /etc/mongod.conf