The MongoDB database
MongoDB is a NoSQL database based on the document store data model. It stores data in a JSON style formatted document. In MongoDB everything is either collection or document. In order to understand MongoDB terminology, collection is an alternate word for table, whereas document is an alternate word for rows.
Installing MongoDB
We are now going to install MongoDB's community edition. Follow the step-by-step guide to successfully install it on your server:
- Ubuntu package management require that distributors sign packages with GPG keys for consistency and authenticity within packages. Execute the following command to import the MongoDB GPG key:
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
- Execute the following command to create a MongoDB source list:
$ echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
- Execute...