Install MongoDb in Windows and mongodb in windows

Source: Internet
Author: User
Tags install mongodb

Install MongoDb in Windows and mongodb in windows

Installing MongoDb in windows is quite comfortable. The specific steps are as follows:
1; MongoDb official website, https://www.mongodb.org, according to the corresponding operating system download the corresponding version.
2. decompress the package to the directory you want to install, such as d: \ mongodb.
3: create a data/db directory, that is, the data storage directory.
D: \ mongodb \ data \ db
D: \ mongodb \ data \ log \ MongoDB. log
4: Configure environment variables so that you do not need to input them to d: \ mongodb \ bin every time.
Configuration


5: add the mongo background service to the service item. The command is as follows:
Mongo-serviceName "MongoDB"
Make sure that the current mongo background Exits normally. If you exit illegally, a mongo. lock file is generated under the db directory and deleted.
After generation:

6. Test the connection.
Run the mongo command,

The test is successful.
So far, mongodb is successfully installed in windows.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.