MongoDB Learning Note Installation and use of MongoDB

Source: Internet
Author: User

Recently due to work needs, to begin to contact with MongoDB, so began to study MongoDB, the first step of research, naturally from the installation and use began. There will certainly be more research and study, so prepare to make a series of related notes for later review.

1.Windows Version Installation

1) version download

Mongodb:http://www.mongodb.org/downloads

Download the corresponding version, here I downloaded the 64-bit.

The installation process is simple, similar to normal software installation, most of which are next, the type of customs selected during installation, and the custom installation directory is D:/mongodb

OK, until the last step finished, complete the MongoDB installation

2) Set the data file path

Create a new logs and data folder inside D:\MongoDB

Create a new Mongodb.log file inside D:\MongoDB\logs


2. Configure the Mongo server:

Enter the D:\MongoDB\bin directory, press the shortcut key Ctrl+shift, and right-click, the right menu will appear the following line of options


Click to open the Command Line window and go directly to the corresponding directory


Enter the following command:

Mongod--dbpath D:\MongoDB\data--logpath=d:\mongodb\logs\mongodb.log--install

The following interface appears in carriage return:


At the command line input net start MongoDB, enter start MongoDB




MongoDB Learning Note Installation and use of MongoDB

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.