Mongoooooooooooooooooooodb Getting Started: Installation and configuration

Source: Internet
Author: User

Introduction

Mom said the name is too long in the back or in the title heap is easy to find.

The source of MongoDB's name is related to the word humongous (great, immense), which is a scalable, high-performance, open-source NoSQL database.

The reason behind go to add so many O, one is the hope that MongoDB can continue to develop, and the second is a symbol of its high scalability ... (Not very far-fetched >.<)

Installation

First on the official website http://www.mongodb.org download installation files, there are 2 formats, one is MSI, one is zip.

MSI is an executable program that needs to be installed while the zip is extracted to the appropriate folder. The author downloads the 64-bit MSI, which is installed by default in the C:\Program FILES\MONGODB 2.6 Standard directory.

Start MongoDB

Before starting to create a database folder, the author's database path is:D:\MongoDB\data.

Then open a command-line window and execute the following 2 commands to start MongoDB:

> CD C:\Program files\mongodb 2.6 standard\bin> mongod--dbpath D:\MongoDB\data

After successful startup, the words "2014-08-18t20:12:16.262+0800 [Initandlisten] waiting for connections on port27017" appear:

Enter http://localhost:27017 in the browser if the following is the case, it proves that MongoDB is started:

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

Many times log files are better able to help us with troubleshooting and performance bottleneck analysis, so you can also specify the path to the log file (optional):

> Mongod D:\MongoDB\log\mongodb.log

The log folder D:\MongoDB\log needs to be a path that already exists, and the log file Mongodb.log is created automatically when the command finishes executing.

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.