MongoDB Learning--Continuous update

Source: Internet
Author: User
Tags mongo show dbs mongodb download

Refer to MongoDB authoritative guide, learning phase, we have a lot of communication issues, and constantly update this article

Advantages of MongoDB
MongoDB has a rich data model and is a document-oriented database.

Easy to scale and split data across multiple servers. Developers need to focus on writing apps. If you need more data, simply add a new machine to the cluster and let the database handle the rest of it.

Rich features such as indexing, storing JavaScript, aggregation, fixed collections, and file storage. Join (join) and complex multiline things are not supported.

Superior performance is the primary goal of MongoDB, and the default storage engine uses memory-mapped files to give memory management to the operating system.

Simple management, MongoDB try to let the server itself to manage the database, in addition to starting the database server, there is almost no necessary management operations. If the primary server is hung, it will automatically switch to the standby server.

MongoDB Download and Installation
first go to MongoDB official website, according to the system model select the version to download, here take Centos64 bit as an example
    #下载WgetHTTPS://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0. 4. tgz TAR-ZXVF mongodb-linux-x86_64-3.0. 4. tgz MV mongodb-linux-x86_64-3.0. 4/usr/Local/mongodb cd/usr/Local/MONGODB mkdir db mkdir logs vim bin/mongodb.conf#添加以下内容dbpath=/usr/Local/mongodb/db logpath=/usr/Local/mongodb/logs/mongodb.Logport=27017fork=true    #重新绑定mongodb的配置文件地址和访问IP/usr/Local/mongodb/bin/mongod--bind_ip localhost-f/usr/local/mongodb/bin/mongodb.conf    #启动MongoDB/usr/Local/mongodb/bin/mongod--config/usr/local/mongodb/bin/mongodb.conf    #测试是否开启成功进入mongodb的shell模式/usr/Local/mongodb/bin/mongo Show DBS#没有异常的话安装启动成功了. 
The basic concept of MongoDB
A document is a basic unit of data in MongoDB, very similar to a row in a relational database.

Similarly, a collection can be seen as a table with no schemas.

A single instance of MongoDB can hold multiple independent databases, each with its own collection and permissions.

MongoDB comes with an indirect but powerful JavaScript shell, a tool that is very useful for managing MongoDB instances and manipulating data.

Each document has a special key "_id", which is unique within the collection where the document is located.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

MongoDB Learning--Continuous update

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.