1. Assume that 1 database server is Active server (master server), 2 and 3 is the backup server, when 1 fails, then will be in 2 and 3 to elect one (according to the weight of the rules) as an active server, and when 1 is back to normal, it will be
1. Add the user to the TD database using use TD and then execute Db.adduser ("name", "password"); can be added;2. Enable users to use Db.auth ("name", "password");3. Generally in the project we want to enable security checks, in the configuration of
Operation of ====================================mgdb ======================================0. The database is created using the (use database name), but if you do not have any other operations (such as a given list) to exit directly after the usage
1. The index is built on the number key named Nameindex and is a positive-order index ({number:-1} is a reverse index) such as: Db.list name. Ensureindex ({number:1},{name: "Nameindex"});2. Specify the use of a positive-order index when querying
MongoDB defaults to No access restrictionsNote: Windows-based platforms MongoDB after the native installation is well-deployed1. Enter the command: Show DBS, you will find it built with two databases, one named admin, one named Local. Local does not
The MongoDB fixed collections (Capped Collection) and large file management (GRIDFS) Capped Collection fixed collections (Capped Collection) are well-performing with fixed-size collections to LRU (Least Recently used the least recently used) rule
DescribeCurrently to do is a number of servers on the program log (such as the order journal, the transaction log, the interface is successful, etc.) summarized to 1 MongoDB server, daily about 100 million of the volume, and then a real-time chart
MongoDB has not found a dedicated method to find the maximum value, but can be sorted and take the first one instead.The following collection data is as follows:{"_id": ObjectId ("54c39358acace71b1bd20a70"), "Epoch_min": Numberlong (1422030840),
MONGO installation processMONGO installation method There are tens of thousands of kinds, only one let me feel good, said the installation process of a little heart de.Method One: Source installation, do not use this method, Nick I used the virtual
1. Provision and installation of resources (Ayjs.net)
Learning instructions: Nodejs is still operating in a non-Windows environment, so everything is
Current time: December 06, 2014 Aaronyang
Website address: www.mongodb.org
Document
MongoDB Replica Set is the officially recommended master-slave replication and high availability scheme for MONGODB, which replaces the original Master-slave master-slave replication scheme. The REPLICAT set has automatic switching, and when primary
Is really a sad story, is that you solve the problem did not remember, but need to search through searching engine again, fortunately, once you have done a record, search to help you find.This is my WordPress blog collation Records, a long time no
1 , check if there is Yum SourceYum Info Mongo-10gen2 , add Yum SourceVi/etc/yum.repos.d/mongodb.repo Enter the following content:[MongoDB]Name=mongodbrepositorybaseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/Gpgcheck=0Enabled=13 ,
From this beginning we mainly discuss the deployment technology of MongoDB.We know that SQL Server can read and write separation, dual-machine hot backup and cluster deployment, of course, MongoDB can also do, in practical applications we do not
Continue to learn about MongoDB today, mainly including the following:--find detailed--Pagination and sorting-Cursors and other knowledge1. Specify the key to returnDb.person.find ({},{"_id": 0, "name": 1, "Country": 1}) This is only the name key
MANGODB Installation1. Download the MongoDB installation file that I installed for Windows 64-bit, as follows:Https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.6.6-signed.msi2. Create a new MongoDB folder on e-disk (casually put, such
1. First download the PHP mongodb extensionDownload the MongoDB extension source package from the Http://pecl.php.net/package/mongo URL1 wget http://pecl.php.net/get/mongo-1.4.5.tgz2. Unzip the installation package1 Tar zxf mongo-1.4.5.tgz3. Go
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