MongoDB installation and configuration scenarios under Windows _mongodb

Source: Internet
Author: User
Tags mongodb

1. First download the MongoDB installation package at the official website:

Http://www.mongodb.org/downloads

Here we download the zip format of the download, the other did not install, will not, will not say.

2. After extracting the file:

3. Set up folder mongondb in D disk:

4. Create the data and log folders in the Mongondb folder. One is used to hold the file, one is to store the log.

5. Copy the entire Bin folder after the decompression and put it in the Mongondb folder.

6. Set the PATH variable:

After you right-click the-----property on your computer:

Add a Path Variable value: ";D: \mongodb\bin";

6. Enter the console, enter the "Mongod.exe--dbpath=d:\mongodb\data" command, there will be a big lump of things, may achieve the desired effect, started the MONGONDB service:

7. Enter in the browser: http://localhost:27017/

8. Do not close the current black window, open another swag, and enter MONGO.

This time indicates that it has been connected to the MongoDB.

9. Although the above method opened the service, but the next time the boot, the use of mongondb still need to restart the service, can be as SQL Server and do not have my SQL to start automatically with the boot? The answer is yes.

Enter Mongod.exe--dbpath=d:\mongondb\data--logpath=d:\mongondb\log\mongodb.log--install in the console; some people say that the output of a string of information. The success; I have nothing to output here, just a string of empty lines.

10. Enter net start MongoDB in the console. A prompt appears that the service has started;

11. Enter MONGO. It'll be connected to test.

12. In My computer--management can see the MONGONDB has been started, or with the boot automatically started

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.