configuration of the cluster(This test is placed on the same machine for configuration, so the IP address, if it is on a different server to replace the IP can be)
1, directory structure copy two MongoDB to/home/scotte.ye/mongo1
preparatory work
Software Environment
Os:oracle Linux 6.5
mongodb:mongodb3.2.3
Deploy schema
Analog has three servers
10.1.5.123:28001 Master Node
10.1.5.123:28002 from Node
10.1.5.123:28003 election node
Replica set Schema: one master, one
MongoDB Download
MongoDB provides a precompiled binary package for 32-bit and 64-bit systems that you can download from MongoDB website, MongoDB precompiled binary package download address: http://www.mongodb.org/downloads
Note: The Windows XP
Fragmentation is a way to mongodb data horizontally, storing data evenly in Shard server clusters by selecting the right slice key.
The fragmented component consists of the Shard server cluster, the config server, and the MONGOs process. As shown in
Robomongo,mongo Visualization Tools
Wow, actually she is three (sinister face).You see, the interface is fresh, let people feel relaxed (shy), who still want to Win+r+mongo ah ah.Oh, yes, go on ... Say the right thing.
In here ... Using SQL to
Mongmongo is a Java-written ODM framework, making the operation of MongoDB more convenient.
Mongomongo strives to provide Java developers with an operational API similar to Activeorm or hibernate, and retains MongoDB's schemaless,document-based
The MongoDB provides several commands for shutting down the service, specifically the following:
one use crtl+c off
[MONGO@REDHATB data]$ mongod--dbpath=/database/mongodb/data/--logpath=/var/applog/mongo_log/mongo.log--logappend --port=2
Http://itbilu.com/database/mongo/E1tWQz4_e.html
Indexing is the most effective means to improve query query efficiency. An index is a special kind of data structure, indexes store part of the data in an easy to traverse form (such as a specific
Now you need to create an account that requires grant permission, which is the authorization permission for account management. Note that the account is followed by the library, so authorization in the specified library must also be verified in the
This article is a summary of the common operations of the MongoDB replica set, and it also introduces the principle behind the operation and points for attention.
Combined with the previous article: MongoDB replica set building, you can be familiar
First, the concept:
Sharding (sharding) refers to the process of splitting a database and dispersing it across different machines. Spread the data across different machines without the need for powerful servers to store more data and handle larger
First, installation
① Add the MONGO installation configuration to Yum
Vi/etc/yum.repos.d/mongodb-org-3.4.repo
Copy the following configuration to a file
[mongodb-org-3.4]
Name=mongodb
Recently installed mongodb3.1.4, and enabled the authorization authentication, in DOS window operation without any problems, in order to maintain the convenience of downloading a client tool Robomongo 0.8.5, user name, password and other
MongoDB has been used recently in new projects, so it took some time to learn a bit. This article to their own study to make a summary, intends to use this article as an API in the future, but also to some ready to learn the small partners, hoping
First, enter the official website to download MongoDBHttps://www.mongodb.com/download-center?jmp=nav#communityNo other action is required, the latest version has been compiled.Second, configure MongoDBMongod--bind_ip 0.0.0.0--logpath
MorphiaIs a lightweight type-safe Library for mapping Java objects to/from
MongoDB:
Morphia is a secure and lightweight Java persistence architecture designed for MongoDB.
1. To use morphia, You need to rely on the following jars:
MongoDB Java
This article is summarized by the program yuan mm in our group
----------------------------------- I am a split line ------------------------------------------
Exact match
For a single key-Value Pair: {"Age": 28}, all documents whose "Age" value
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