I. Overview
Recently to install MongoDB on the new CentOS system, a certain degree of results directly from the MONGO official website directly obtained 3.2 version of the download link, the results found in the download of poor speed. Forced
Note: The MongoDB version used by the author is 2.4.7.
First insert test data
Copy Code code as follows:
Db.data.insert ({name: ' A ', num:[12,123,22,34,1]});
Db.data.insert ({name: ' B ', num:[42,22]});
Db.data.insert ({name: '
Interested in the MongoDb document database, to install the understanding.
To the official download win version http://www.mongodb.org/display/DOCS/Downloads is currently the latest stable version of 1.2.4. Extract to f:/sofr/mongodb-win32-i386-1.2.
MongoDB is an open source NoSQL database that is primarily used in large data situations and is considered the Node.js's golden partner, and because it uses the binary JSON format, it has no affinity to JavaScript with any language. The specific
MongoDB is an open source NoSQL database that is primarily used in large data situations and is considered the Node.js's golden partner, and because it uses the binary JSON format, it has no affinity to JavaScript with any language. The specific
For example, limit the memory size of the MongoDB.
mkdir/cgroup/memory/test/
echo 50M >/cgroup/memory/test/memory.limit_in_bytes
echo 50M >/cgroup/ Memory/test/memory.memsw.limit_in_bytes
cgexec-g memory:test mongod-port 27017--bind_ip 127
At any point in time there is only one active node, the other is the backup node, when the active node pump, will pass the election rule, select an active node from the alternate node, when the pump node recovers, it becomes the standby node.
Description: All operations in this article are in the MongoDB3.4.4 version under win7 . First, backup and recovery1. Backup:Mongodump-h IP--port Port- u user name - p password - d database - o c9> file path(a user account will be used to back up
Detailed illustrations documenting the process of installing the MONGO database in Win7 64. The installed version is mongodb-win32-x86_64-2008plus-ssl-3.4.1-signed.I downloaded the source file: mongodb-win32-x86_64-2008plus-ssl-3.4.1-signedMy system:
the data structure to query for such as the following:take the Versionlimitlist field in the query as an exampleMongooperations Tool class Query related statementscriteria criteria1 = Criteria.where ("Validstarttime"). GT (New Date ()). and ("
Note that MongoDB's role is created and configured for later useBrief introductionReplica Set , Chinese translation is called a copy set, but I don't like translating English into Chinese, it always feels strange. In fact, in short, the cluster
MongoDB Shard Overview
ShardsIn MongoDB there is another cluster, that is, the Shard technology, can meet the requirements of a large number of MONGODB data volume growth.When MongoDB stores massive amounts of data, a machine may not be enough
MongoDB Common commands:After the successful start of MongoDB, and then open a command line window input MONGO, you can do some of the database operations.Show DBS: Display database list use database name: Switch the current database, which is 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service