First step, install MongoDB to each server
Prepare more than 3 MongoDB servers and do the following on each platform
1, download MongoDB, extract and move to/usr/local/mongodb directory(if wget is not installed, please yum install wget or apt-get
MongoDB Introduction
MongoDB is a database based on distributed file storage. Written by the C + + language. Designed to provide scalable, high-performance data storage solutions for WEB applications.
MongoDB is a product between relational
We can view all the parameter descriptions of Mongod through Mongod--help, and the following is the Chinese explanation of each parameter.
Basic Configuration
Copy Code code as follows:
–quiet
# quiet Output
–port Arg# Specify the
In discuz! NT in the Enterprise version of the design process, the processing of large data tables has been a headache, especially like the topic table (topic), User table (users), etc., because for a large number of traffic and posting forum, after
---1. Turn off Numa in procRpm-qa | grep numactlYum Install-y Numactl# echo 0 >/proc/sys/vm/zone_reclaim_mode# sysctl-w Vm.zone_reclaim_mode=0---2. Change the maximum number of connections#vi/etc/security/limits.conf* Soft Nofile 25000* Hard Nofile 2
Gridfs is a feature of MONGO that specializes in storing small files.Used in the following scenarios:1. Write file: Mongofiles put file path
Note which library the current MONGO instance is linked to, the GRIDFS system in which the file is
The default log message verbosity level for the systemlog.verbosity component. The level of detail determines the amount of information and debug messages that the MongoDB outputs. The verbosity level can be between 0 and 5:0 is the default log
First, Numa introductionBefore introducing Numactl, you need to talk about what NUMA is, so that you can better understand numactl.NUMA (Non Uniform memory access Architecture) literally translates to "non-conforming RAM access", which first appears
MongoDB Replica Set Overviewtake a piece from the official MongoDB document: http://docs.mongodb.org/manual/core/replication-introduction/650) this.width=650; "Src=" http://images.cnitblog.com/blog/288950/201308/11144626- E95b0689174d4727974d39c02fd5
Export to JSON:$ mongoexport.exe-d testdb-c testcollection-o./test.jsonExport to CSV:If you are want to output CSV, you are specify the fields in the order you want them.$ mongoexport.exe--csv-f _id,f1,f2,f3,f4,f5,f6,f7-d testdb-c
MongoDB Series (ii): MongoDB replica setMongodb2.6 replica set validation deployment and certificationReplica sets have the following characteristics:1. The minimum composition is: Primary,secondary,arbiter, General deployment is: primary,2
MongoDB version 3.2 Wiredtiger storage engine performance test Chszs, not allowed to reprint without Bo master. Permission to reprint should be marked by the author and blog home: Http://blog.csdn.net/chszsMongoDB 3.2 was recently released, and it
Recently using the thinkphp connection MongoDB database for the pruning, before using the PHP itself to support the connection to MongoDB, the following is the way I installed the MongoDB extension of PHPWget-c
When your users complain that the changed information does not change, the deleted data is still displayed, you pinch the count, it is estimated that the database master never synchronized.As with other databases that provide data synchronization,
Keep a record, lest you forget. All of them are self-test-used installation process no problem.Linux Common CommandsMV Moving filesmkdir Creating a FolderRM DeleteCP ReplicationNetstat network statusTar decompressionwget downloadRPM Installation
The first thing to look at is GitHub's C + + driver projectHttps://github.com/mongodb/mongo-cxx-driverHere is a brief introduction, the current C + + driver is divided into three versions, placed in different branch
Branch
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