download mongodb package for ubuntu code example
Example 1: mongodb install ubuntu
follow the steps from the below link
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
Example 2: how to install mongodb server in ubuntu
sudo apt install -y mongodb
# it will install mongodb server into linux system