How to install mongoDB on windows?

前端 未结 15 641
清歌不尽
清歌不尽 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:20

    Update Nov -2017

    1) Go to Mongo DB download center https://www.mongodb.com/download-center#community and pick a flavor of MongoDB you want to install. You can pick from

    • MongoDB Atlas - MongoDB database in the cloud
    • Communiy Server - MongoDb for windows (with and without SSL),iOS, Linux
    • OpManger- Mongo Db for Data Center
    • Compass - UI tool for MongoDB

    To know your OS version run this command in cmd prompt

    wmic os get caption
    

    To know your CPU architecture(32 or 64 bit) run this command in cmd prompt

    wmic os get osarchitecture
    

    I am using Community version (150MBs- GNU license)

    2) Click on MSI and go through installation Process. Exe will install MongoDb and SSL required by the DB.

    Mongo DB should be installed on your C drive

    C:\Program Files\MongoDB

    MongoDB is self-contained, it means and does not have any other system dependencies. If you are low on disk in C drive then you can run MongoDB from any folder you choose.

    You can now run mongodb.exe from bin folder. If you get Visual C++ error for missing dlls then download Visual C++ Redistributable from

    https://www.microsoft.com/en-in/download/details.aspx?id=48145

    After installation, try to rerun mongo.exe.

提交回复
热议问题