start mongo server ubuntu code example
Example 1: start mongodb service ubuntu
sudo systemctl start mongod
sudo systemctl stop mongod
Example 2: mongodb install ubuntu
follow the steps from the below link
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/