MongoDB Installation (i)

Source: Internet
Author: User

Windows 8 Installation MongoDB

1. Download the installation package

Http://www.veryhuo.com/down/html/mongodb.html

2. Unzip to the D:/mongodb directory.

3. Add the D:/mongodb/bin to the path of the system environment variable.

4. Open cmd as Administrator and type the following command:

Mongod--dbpath d:/mongodb/data Note: Create the Data folder within the D:\mongodb folder first

After execution is complete. Open http://localhost:27017 in the browser

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

5. If you need to run the database as a service. Close the Command Prompt window. Re-open a new cmd type command

Mongod--logpath D:\MongoDB\logs\MongoDB.log--logappend--dbpath D:\MongoDB\data--directoryperdb--servicename MongoDB--install

Log file: D:\MongoDB\logs\MongoDB.log

Data file directory: D:\MongoDB\data, and the parameter--directoryperdb indicates that each DB will create a new directory

Name of the Windows service: MongoDB

Open the Service List Discovery Service has been installed successfully.

After installation, the following is said in the C # code operation MongoDB.



MongoDB Installation (i)

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.