How to install MongoDB on Ubuntu 18.04


MongoDB is a document-oriented database program.

wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org

Start MongoDB

sudo systemctl start mongod

Check if everything worked

sudo systemctl status mongod
,

Leave a Reply

Your email address will not be published. Required fields are marked *