Win10 Installing MongoDB

Source: Internet
Author: User
Tags install mongodb mongodb compass

Win10 above the installation of MongoDB, be careful not to check the install MongoDB Compass, or will exit Error!!!!

  

    • The installation of MongoDB
      I am a MongoDB folder built on the e disk, used to install MongoDB.
      and create it in the MongoDB folder ahead of time:

E:\mongodb\data\db (this folder is used to store the database)
E:\mongodb\logs\mongodb.log (this folder is used to store logs)
E:\mongodb\etc\mongodb.conf (config file)
Where the mongodb.conf configuration file is the following:

dbpath=E:\mongodb\data\dblogpath=E:\mongodb\logs\mongodb.loglogappend=true

The first step is to configure the environment variable, go to the MongoDB bin directory, copy the address

Second, this is also a key step, win10 not directly into the cmd command, due to the WIN10 system, we'd better open the developer mode. Then win +x has the administrator way into the cmd window: (This is the reason why you can not install MongoDB service, because the target computer actively refused to connect the –mongodb connection error resolution)

The third step, enter the following command

mongod --dbpath =E:\mongodb\data\db  --logpath=E:\mongodb\logs\mongodb.log --install --serviceName "MongoDB"
    • 1

Subject to the actual installation directory location of the individual. Be sure to run this command as an administrator. That's why the target computer is actively refusing to connect –mongodb.

After running the above command. We can run

start MongoDB
    • 1

Finally we come into:

This has been successfully configured under WIN10. Remember win + x go to admin command prompt OH

Win10 Installing MongoDB

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.