How to Install MongoDB on Ubuntu 18.04


Easily deploy your favorite applications in seconds at an unbeatable price for your next projects.

Installing MongoDB on Ubuntu 18.04

MongoDB is a free and open-source NoSQL database program that uses a document-oriented data model. It provides scalability, flexibility, and high performance, making it ideal for modern application development. This guide will walk you through the installation process of MongoDB on Ubuntu 18.04.

To install MongoDB on Ubuntu 18.04, follow the steps below:

sudo apt update
sudo apt upgrade

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 4B7C549A058F8B6B
echo "deb [ arch=amd64,arm64 ] http://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 update
sudo apt install mongodb-org

sudo systemctl start mongod
sudo systemctl enable mongod

sudo systemctl status mongod



  1. Update Package Repository: Open a terminal and run the following commands to update the package repository:
  2. Add MongoDB Repository: Add the MongoDB repository to the package manager by executing the following command:
  3. Install MongoDB: Run the following command to install MongoDB:
  4. Start MongoDB Service: After the installation is complete, start the MongoDB service by running the command below:
  5. Verify MongoDB: Check the status of the MongoDB service using the following command:
  6. Access MongoDB shell: Open the MongoDB shell by running the command:
  7. Exit MongoDB shell: To exit the MongoDB shell, type the command:

Now you have successfully installed MongoDB on Ubuntu 18.04. You can start using MongoDB for your applications and enjoy its flexible and scalable database capabilities.

Refer A Friend
Get $25

Installing MongoDB on Ubuntu 18.04
Ubuntu 18.04
MongoDB installation
MongoDB setup
MongoDB Ubuntu tutorial
MongoDB on Ubuntu step by step
MongoDB Ubuntu guide
how to install MongoDB on Ubuntu 18.04
MongoDB installation on Ubuntu 18.04
MongoDB Ubuntu installation guide

Why Customers Love Us

What our customers say about us

Ready To Get Started For Free?

Create your free account today.