Installation tutorial for "MongoDB" MongoDB

Source: Internet
Author: User

1,mongodb Introduction

MongoDB is also a database, but it is neither a relational database nor a non-relational database (NoSQL), but a kind of database between relational database and NoSQL . If the non-relational database is lightweight, it has the characteristics of fast access speed. Relational database is a heavyweight, with the characteristics of large storage data, data security, convenient query statistics and so on. Then MongoDB has a non-relational database storage data fast characteristics, and relational database storage data volume, security and other characteristics.

    • MongoDB is a database based on distributed file storage
    • MongoDB is a product between NoSQL and relational databases
    • MongoDB is based on the C + + language
    • MongoDB has query language, index, KEY-VALUE storage structure
    • MongoDB store data is in Bson type (JSON)
2,MONGODB Installation 2.1 Downloads

First download the corresponding version of MongoDB online, we can download to the official website.

At the time of the download, there is a rule that even "stable" (for example: 1.6.x,1.8.x), the base is "development" (for example: 1.7.x,1.9.x).

2.2 Installation

After the download, after decompression, there will be three directories. The bin directory is a program file, and the other two directories are header and library files called by C + +.

Here's what some of the program files in the bin directory do:

Mongo.exe command-line client Tools

Mongod.exe command-line service-side tools

Mongodump.exe Database Backup Program

Mongoexport.exe Data Export Tool

Mongoimport.exe Data Import Tool

Mongorestore.exe Database Recovery Tool

Mongos.exe Performance Testing Tools

2.3 Run

after the download is complete, do not rush to clickon the Mongo.exe, this is the client, need to work on the server before it will have effect.

Create a new two folder under the installation directory data and logs, which is the directory sibling to the bin directory.

For example, I extracted MongoDB into the D:\MongoDB directory, and then run:

mongod--dbpath d:/mongodb/data--logpath d:/mongodb/logs/mongo.log--logappend--servicename MongoDB--install

Seeing the--servicename above shows that we have opened the MONGDB service.

Start Mongodb:net start MongoDB
Stop Mongodb:net Stop MongoDB
Delete MONGODB:SC Delete MongoDB

Then we can use the client,

Enter directly inside the cmd window: MONGO (provided the environment variable is already configured), then enter it.

Installation tutorial for "MongoDB" 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.