install mongoDb on windows 7

MongoDb is a document base data base which is free and easy to use.I must confess that it's quite quick.So, it worth to test.

steps and tricks for the ones who have windows 7

1-download zip folder http://www.mongodb.org/downloads
2-unzip it and rename it, if your tidy guy and also care about your folders name otherwise keep it as what it is.
c:\mongodb
3-create a folder named "data" and inside that folder another folder named "db" wherever you want to keep your data
c:\mongodb\data\db 
4-click on start / write cmd then right click on cmd.exe in programes and select run as administrator .
5-run mongod.exe which  in bin folder of mongo with the address of data folder which you already have created
c:\mongodb\bin\mongod --dbpath c:\mongodb
6-leave this cmd windows open
7-click on start/ write cmd then right click on cmd.exe in programes and select run as administrator .
8-run mongo.exe which  in bin folder of mongo with the address of data folder which you already have created








---------------------
Set MongoDB as Windows service
1-click on start / write cmd then right click on cmd.exe in programes and select run as administrator .
2-create a folder names logs
3--run mongod.exe which  in bin folder of mongo with the address of data folder which you already have created and install arg

c:\mongodb\bin\mongod  --logpath c:\mongodb\bin\logs\log.txt  --logappend --dbpath c:\mongodb\data --directoryperdb --install





Comments