Member-only story

Installing and Getting Started with MongoDb on Linux Ubuntu

Getting started with MongoDb, a NoSQL database system

Mwiza Kumwenda
4 min readMar 24, 2020
Image by mcmurryjulie from Pixabay

In this guide we will take a look at installing MongoDb and getting started with some basic query commands.

MongoDb is an open-source cross platform NoSQL or document-oriented database system. The database information is represented as JSON schemas.

NoSQL Databases, like MongoDb, are popular among software engineers because of their object-oriented manner of representing information.

Install MongoDb

You can easily install MongoDb from the command line. First update your package.

$ sudo apt-get update

Then install MongoDb with the command below.

$ sudo apt-get install mongodb

MongoDb Service

MongoDb runs a service in the background. Here are some helpful command for working with the MongoDb service.

Check status

$ sudo service mongodb status

The green light shows that the service is active and running. In addition, the active property also shows that the service is running.

--

--

Mwiza Kumwenda
Mwiza Kumwenda

No responses yet