Simple steps for installing MongoDB

Step-1:   Download the MondoDB zip file for windows from www.mongodb.org/downloads

Step-2:   Extract the zip file.

Step-3:   Make a folder structure like bellow

C:\MongoDB

C:\MongoDB\data

C:\MongoDB\logs

C:\MongoDB\mongo.config

also put the extracted zip file to MongoDB folder

C:\MongoDB\mongodb-win32-i386-2.6.3

Step-4:   Open mongo.config file in notepad  put the bellow things and save the file.

## store data here
dbpath=c:\MongoDB\data

## all output go here
logpath=c:\MongoDB\logs\mongo.log

## log read and write operations
diaglog=3

Step-5:   Open the command prompt run as administrator.

Step-6:   To start MongoDB type the following command

cd C:\MongoDB\mongodb-win32-i386-2.6.3\bin

mongod –config c:\MongoDB\mongo.config

Step-7:   Check the mongo database

C:\MongoDB\mongodb-win32-i386-2.6.3\bin>mongo

2014-08-05_21-37-22

Step-8:   Successful installation of MongoDB.

Advertisements