MongoDB installed and configured under Windows 1, download: http://www.mongodb.org/We recommend downloading the zip version.2. InstallationDownload Windows version installation just like normal software, the next step is right.3. Start the
First, using Yum to install MongoDB1. Configure the Yum sourceAdd 10gen.repo files to the/etc/yum.repos.d/directoryVi/etc/yum.repos.d/10gen.repo[10gen]Name=10gen RepositoryBaseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64gpgcheck=02.
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
Problem Description:When analyzing performance problems in a production environment, it is often impossible to do so without a real-time basis. Then the author captures Db.currentop () to the file, and as a timed task, is available for subsequent
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
MongoDB supports array typeMongoDB is really good at the function of the group. For complex data processing with mapreduce, but this thing is very slow, more suitable for script processing data, not suitable for real-time data queryIn the field of
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
1. Returns the specified key value: Db.list.find ({condition},{name: "Any value", Age: Any value}); The result will only return the _ID name age three key values, if you do not want to _id you need to write _id:0 explicitly to the second set of key
RS is a global variable that contains auxiliary functions related to replication, most of which are simply wrappers for database commands, such as>db.admincommand ({"replsetinitiate": config})Just and>rs.initiate (config)Commands are equivalent, but
# method 1: (recommended)#--fork option will notify Mongod to run in the background/path/to/mongodb_dir/bin/mongod--logpath/path/to/file.log--logappend--fork# Method 2:# REDIRECT output to the File.log file# & Put the process in the background
MongoDB Chinese Document: http://docs.mongoing.com/manual-zh/contents.htmlHere, for example, with the collection name test, the database inserts some test data through a for loop, with the keys: name,age,date db.test.find () querying all the
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
Mongo DB is a non-relational database (NOSQL) that is currently very popular in the IT industry, and its flexible data storage methods are highly favored by current it practitioners.In this article, the installation steps of MongoDB in the centos6.5
I. Read and write SeparationQueries can be made from the library, which can share a large number of query requests from the main library.1. Insert a test data into the main library first[Email protected] bin]#/mongo--port 280101.8.1
Master-Slave operation Log OplogMongoDB's replica set schema is a log to store writes, and this log is called "Oplog". Oplog.rs is a fixed-length capped collection that exists in the "local" database for recording replica sets operations logs. By
When applying pressure hours, you can reduce the cost of hardware resources by reducing the number of nodes; This is a long-term and ongoing work.The following two new nodes just added 28013 and 28014 from the replication set to remove, just execute
MongoDB provides a variety of index support, the index information is saved in System.indexes, and the default is always to create an index for _ID, its index uses the basic and MySQL and other relational database. In fact, it can be said that 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.