Saturday, 23 September 2017

MongoDB - Installation and Setup

Here you will get to know about Installation and setup of MongoDB for your NodeJS Application.
you need to just follow the below steps.

1- First of all you need to install MongoDB in your System.
    Url :

2- Now Install the Mongochef (A GUI for MongoDB)

3- Create a folder in C:/ named "data" and inside data folder create a "db" folder. (MongoDb default data directory)

4- Set user envoirenment variable for mongodb server bin path “C:\Program Files\MongoDB\Server\3.4\bin” 

5- You can also run mongodb as a windows service by setting following path
     mongod --dbpath="C:\data\db" --logpath="C:\data\db\log.txt" --install

open the cmd with administration mode. change the directory to mongodb server bin. and run the above command.

6- The above command will create the window service. now open the service.msc and start the service.

7- Now mongodb is ready to use. open the mongo.exe from “C:\Program Files\MongoDB\Server\3.4\bin”

8- Now you can run mongo commands. see the below screenshot.

9-  Open the Studio3T(Mongochef) to run mongodb from GUI.

10- Click on Connect button. Create a new connection and click on Save button.

11- Click the connect button. your Mongodb is ready to use in the GUI.


1 comment:


ADFS (1) ADO .Net (2) Ajax (1) Angular (1) Angular Js (17) Angular2 (28) ASP .Net (14) Authentication (1) Azure (1) Breeze.js (1) C# (50) CD (1) CI (2) CloudComputing (1) CMS (1) CSS (2) Design_Pattern (3) DevOps (4) DI (4) Dotnet (22) Entity Framework (3) ExpressJS (4) Html (3) IIS (1) Javascript (6) Jquery (8) Lamda (3) Linq (11) Mongodb (1) MVC (50) NodeJS (7) RDLC (1) Report (1) SDLC (1) Sql Server (30) SSIS (3) SSO (1) SSRS (2) UI (1) WCF (13) Web Api (11) Web Service (1) XMl (1)