How to install mongoDB on windows?

前端 未结 15 722
清歌不尽
清歌不尽 2020-11-29 14:55

I am trying to test out mongoDB and see if it is anything for me. I downloaded the 32bit windows version, but have no idea on how to continue from now on.

I normally

15条回答
  •  天涯浪人
    2020-11-29 15:30

    1. Download from http://www.mongodb.org/downloads
    2. Install .msi file in folder C:\mongodb
    3. Create data, data\db, log directories and mongo.config file under C:\mongodb.
    4. Add the following lines in "mongo.config" file dbpath=C:\mongodb\data\db\ logpath=C:\mongodb\log\mongo.log
    5. Start server : mongod.exe --config="C:\mongodb\mongo.config"

    That's it !!!

提交回复
热议问题