MongoDB is installed and configured under Windows.

Source: Internet
Author: User

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

Http://www.mongodb.org/downloads

Here we download the zip format download, the other has not been installed, will not, will not say.

2. After extracting the file:

3. Create a folder in the D drive mongondb:

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

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

6. Set the PATH variable:

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

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

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

7. In the browser, enter: http://localhost:27017/

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

This time indicates that it has been connected to MongoDB's test.

9. Although the above method has opened the service, but the next time the power-on, the use of mongondb still need to restart the service, can be like SQL Server and without my SQL to boot automatically with the boot? The answer is yes.

In console input Mongod.exe--dbpath=d:\mongondb\data--logpath=d:\mongondb\log\mongodb.log--install; some people say output a bunch of messages. That's a success. I have nothing here. Output is a string of empty lines.

10. In the console, enter the net start MongoDB. The prompt that the service has started will appear;

11. Enter MONGO. It will connect to test.

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

13. Goodbye.

MongoDB is installed and configured under Windows.

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.