MongoDB Introduction and Installation

Source: Internet
Author: User

I. Approximate INTRODUCTION

    • MongoDB-Distributed Document store database

Mongodb, a distributed document storage database, written in the C + + language, is designed to provide scalable, high-performance data storage solutions for Web applications. MongoDB is a high-performance, open-source, modeless document-based database that is a popular one in the current NoSQL database. It can be used in many scenarios to replace the traditional relational database or key/value storage methods. MONGO is developed using C + +.

    • Basic information

MONGODB[1] is a database based on distributed file storage. MONGODB[2] is a product between a relational database and a non-relational database, the most versatile of the non-relational databases, most like relational databases. The data structure it supports is very loose and is a JSON-like Bjson format, so you can store more complex data types.

    • Principle of Use

The so-called "set-oriented" (collection-oriented), meaning that data is grouped in a dataset, is called a collection (Collection). Each collection has a unique identifying name in the database and can contain an unlimited number of documents.  The concept of a collection is similar to a table in a relational database (RDBMS), unlike it does not need to define any schema (schema). Mode Freedom (schema-free) means that for files stored in a MongoDB database, we do not need to know any of its structure definitions.  If necessary, you can store files of different structures in the same database. The documents stored in the collection are stored in the form of key-value pairs. The key is used to uniquely identify a document as a string type, whereas a value can be a variety of complex file types. We call this storage form Bson (Binary serialized dOcument Format).

(The above snippet is from the network.) )

Second, installation

(You can use it because you don't have to do anything.) )

1. Download and install

DB1:/home/toughhou/software > Curl-o https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.6. tgztar -xvf mongodb-linux-x86_64-2.6. 6  mv mongodb-linux-x86_64-2.6. 6 /opt/mongodb_2. 6.6

2. Environment variables (just for convenience)

vi /etc/profile#mongoexport mongo_home=/opt/mongodb-2.6. 6 export PATH= $PATH: $MONGO _home//home/toughhou/software > Source/etc/profile

3. Start MongoDB

DB1:/opt/mongodb-2.6. 6/bin >/mongod--dbpath=/opt/mongodb-2.6. 6/data--logpath=/opt/mongodb-2.6. 6/log/mongodb.log--logappend&
/Home/Toughhou/>2.6. 6  to: Test
>00. 078GB

It's OK.

MongoDB Introduction and Installation

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.