install mongodb ubuntu using service code example
Example 1: start mongodb service ubuntu
sudo systemctl start mongod
sudo systemctl stop mongod
Example 2: how to install mongodb in ubuntu
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -