MongoDB Windows environment Installation and configuration

Source: Internet
Author: User
Tags mongodb windows

1. The first step: download the appropriate installation package, the current version is 2.6, the URL is:http://www.mongodb.org/downloads.

The installation package has the zip and MSI two formats, and the MSI installation does not let you choose the installation path, which is installed by default to C:\Program Files\mongodb 2.6 standard.

The machine in this example is Windows7 64bit, download 64bit Zip package, unzip to E:\MongoDB directory after download is complete

Create the database directory E:\MongoDB\data, and then in the command-line window, switch to the E:\MongoDB\bin directory to execute the following command:

Where--dbpath is the specified database storage directory, note: Use two "-" instead of one.

Mongod--dbpath E:\MongoDB\data

The command-line window prints some startup information, and the last line appears as the following message to indicate a successful start:

2014-04-23t10:38:48.391+0800 [Initandlisten] waiting for connections on port 27017

then, in the browser input http://localhost:27017/, see The following information

It looks like you is trying to access MongoDB over HTTP on the native driver port.


At this point, MongoDB installation is complete.


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.