Last updated on

MongoDB is a document-oriented cross-platform database program and it is a leading NoSQL database. MongoDB uses JSON like schema to store documents as a collection. MongoDB is developed by MongoDB Inc. In this article, we are going to explain how to install MongoDB on Ubuntu 18.04.

Prerequisites

Before installing MongoDB, you should have access to an Ubuntu 18.04 with a non-root user account with sudo privileges.

Installing MongoDB

By default, Ubuntu has the MongoDB repositories in the apt repo list. So you can install the MongoDB without adding any additional repository. First, you need to update the apt packages using the below command