Installing of MongoDB

You can download the latest version of MongoDB here: https://www.mongodb.com/download-center#community. Follow the setup instructions to install it.

Once MongoDB is installed on your Windows PC, you have to create the following directory:

Data directory C:\data\db  

Once you have successfully installed MongoDB, you will be able to see the following executable:

We have to start the mongod instances to begin working with MongoDB. To start the mongod instance, execute it from the command prompt, as shown in the following screenshot:

Once mongod has started, we have to connect this instance using the mongo client with the  ...

Get Seven NoSQL Databases in a Week now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.