How MongoDB is installed and started

Source: Internet
Author: User

MongoDB is an open- source, cross-platform, document-oriented database written in C + + and is a NoSQL database. MongoDB abandons the table-based data structure in the traditional database and uses a document structure similar to the JSON format to store the data ( This format is called BSON in MongoDB). MongoDB was originally developed by thecompany in the year of 10gen( renamed as MongoDB Inc) and years of open source. now we start with the basics,LearningMongoDBinstallation and start-up.

The first step: Download the installation package: If it is a win system, note whether it is a one -bit or a three-bit version, please select the correct version.

Second step: Create a new directory "D:\\mongodb", unzip the downloaded installation package, locate all the. exe files under the bin directory , and copy to the directory you just created.

Step three: create a new "data" folder in the "D:\\mongodb" directory , which will be the root folder for data storage.

Note: official: http://www.mongodb.org/downloads

Configure the MONGO service side:

Open The cmd window and enter the command as follows:

> D:

> CD D:\\mongodb

> Mongod--dbpath d:\\mongodb\\data

After the configuration is successful, you will see the following screen:

In the browser input: http://localhost:27017/, you can see the following prompt:

You is trying to access MongoDB on the native driver port. For HTTP diagnostic access, add the port number

Thus, the MongoDB database service has been successfully started.

Original from: Blog Park /wangkejun

How MongoDB is installed and started

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.