How to Install MongoDB on Ubuntu

Nosql:
NoSQL is an approach that allows the simplicity of design and finer control over availability with a focus on performance, reliability, and agility.
They differ from RDBMS in terms of underlying data structures.NoSQL systems are also called “Not only SQL” to emphasize that it may also support SQL like query language.
The NoSQL database systems are particularly well-suited for web services that need to scale (by using simpler data replication across a cluster of machines) and also to adapt to quickly-changing data models (by using dynamic schemas).
The NoSQL data structures used by the various database implementations can be: key-value stores, graphs, or documents.
NoSQL encompasses a wide variety of different database technologies that were developed in response to a rise in the volume of data stored about users, objects and products. The frequency in which this data is accessed, and performance and processing needs.
Mongodb:
MongoDB is a NoSQL database that offers a high performance, high availability, and automatic scaling enterprise database.
MongoDB is a NoSQL database, so you can’t use SQL (Structured Query Language) to insert and retrieve data, and it does not store data in tables like MySQL or Postgres.
Data is stored in a “document” structure in JSON format (in MongoDB called BSON).
Install MongoDB in Ubuntu
Step 1 : Importing the Public Key
GPG keys of the software distributor are required by the Ubuntu package manager apt (Advanced Package Tool) to ensure package consistency and authenticity.
Run the following command to import MongoDB keys to your server.

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10

Step 2 : Create source list file MongoDB
Create a MongoDB list file in /etc/apt/sources.list.d/ with this command:

echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list

Step 3 : Update the repository
update the repository with the apt command:

sudo apt-get update

Step 4 : Install MongoDB
Now you can install MongoDB by typing this command:

sudo apt-get install -y mongodb-org