Wednesday, 23 March 2016

Installing MongoDB server in Windows



1)
    Go to   

https://www.mongodb.org/downloads#production


2) download mongoDB  depends on the system 32 or 64 bit
     for 64 bit download windows 64 bit  2008 R2+


3)  got to     C  drive where mongodb installed ..it's usually at

  C:\Program Files\MongoDB\Server\3.2\bin


  -> add this path to the  Environmental  variables

 -> This pc  >  right click > properties  > advanced system settings >Environmental variables
    create New  and

         Variable Name:   PATH
         Variable  Path :   C:\Program Files\MongoDB\Server\3.2\bin

4) After installation  Open  cmd  and type  

   > mongodb

it will prompt warning to create a folder to store the data..for that you need to create 
a folder in  C /data/db


through cmd    >    mkdir  /data/db


5)Now type mongod  that's it ...           it  will run mongod server background.

6) To run mongo command line interpreter  type  mongo in cmd.





No comments:

Post a Comment