From https://www.linode.com/docs/databases/mongodb/use-mongodb-to-store-application-data-on-centos-5Use the MongoDB to Store application Data on CentOS 5Updated Friday, April 29th, by Linode
This guide have been deprecated and is no longer
1 MongoDBMongoDB is written by the C + + language and is an open source database system based on distributed file storage. With high performance, high availability, and automatic scalability. MongoDB stores data as a document and data structures
First, Mongdb3.0 installationDownload the latest stable version of MongoDB software on official websiteHttps://www.mongodb.org/downloadsDecompression software[Email protected] service]# tar zxvf mongodb-linux-x86_64-rhel62-3.0.3.tgz mongodb-linux-x86
/*** MongoDB $type operator*/
/*** The $type operator is based on the Bson type to retrieve the matching data type in the collection and returns the result.* The types of MongoDB that can be used are shown in the following table:* Type Number Notes*
Production Environment Best Practices1. Linux:1] disable the atime option of the file system/partitionVI/etc/fstabAdd noatime and nodiratime after the corresponding partition itemLabel =/1/ext3 defaults 1 1Label =/data1/Data ext4 defaults, noatime,
When it comes to MongoDB's architecture, it is inevitable to compare it with relational databases. Here we take MySQL for example, we make some comparisons:From the logical structure of the comparison:
MySQL Hierarchy concept
MongoDB Data Replication shard
I. MongoDB introduction:
MongoDB is a high-performance, open-source, and non-pattern document-based database. It is a popular NoSql database. It can be used in many scenarios to replace traditional relational databases
MongoDB Database Introduction
Characteristics
For collection Storage
Rich query Statements
Replication set mechanism
Support for file storage
Mode freedom
Multilevel index
Easy Horizontal
MongoDB basic operation learning notes
Record the basic operations of MongoDB today. This is only the most basic operation, so it should be mastered.
Database
A database is a collection of physical containers. Each database has its own file system.
MongoDB database data aggregation & amp; Pipe operations, mongodb database AggregationThe data aggregation process for pipeline operations on mongodb usually works with pipeline operations. The pipeline operation concept of mongodb is similar to the
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.