The main parameters of Mongod are:
Basic Configuration
--------------------------------------------------------------------------------
--quiet
# quiet Output
--port Arg
# Specify the service port number,
CentOS 6.5 Installation MongoDB 2.6Author: Chszs, reprint should be indicated. Blog home: Http://blog.csdn.net/chszs
Below we install the latest MongoDB 2.6.0 version on the CentOS 6.5 x64 system.
The MongoDB v2.4.x version of the software
In the last blog post, we have explained how Windows configures the MongoDB database, so let's now implement how to connect to the database.
Use one of the methods listed below to connect:
There is no need to disconnect from the
First of all, my system is a ubuntu11.04,64 bit system, the following installation may need to modify their own system conditions.
1. Download MongoDB installation package
$wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.0.tgz
2.
MapReduce is a software framework released by Google in 2004 to support distributed computing for large-scale data, see here for details.
MongoDB is an open source document-oriented NoSQL database system, written in C + +, please see here for
Description:
There are two installed MongoDB database server, now need to set a main library, another set to from the library, to achieve master-slave synchronization.
Operating System: CentOS 7.0 64-bit
MongoDB database version:mongodb-linux-x86_64-
One, basic command:
1, view all databases: Show DBS
2, select database Use dbname, if the database does not exist, you will create a new database
3, view all database-related operations (like JavaScript functions) Db.help ()
Use Db.help () to get
Sometimes, when initializing the data, the number of command bars is too many, directly copy the INSERT statement, paste into the command line execution, very slow (time all spent on the paste above), so put the statement into the script to execute,
First, the port IP is well plannedThe schema diagram below, arbitrarily extracting one shard (non-quorum node) from each replica set can form a complete piece of data.1. First replica set rs1
Share1
Gridfs is a file specification for storing large files in MongoDB:The MongoDB database holds binary objects in support of the Bson format , but the Bson objects in MongoDB cannot exceed 4MB in maximum.The GRIDFS specification provides a transparent
1. Select a database
Command: Use Datebase_name (database name)Function: If the database is not created directly, if any, switch the databaseThe following results are performed:
Use RunoobSwitched to DB RunoobDbRunoob 2. View all current
The example is based on the current latest MONGO driver, version Mongo-2.10.1.jar, and unit tests written in JUnit.
Testcase.java Java code package com.wujintao.mongo; import java.net.unknownhostexception; import java.util.arraylist;
MongoDB Shard Cluster What is a shardHigh data volume and throughput of the database application will be a single-machine performance of a large pressure, large query volume will be a single CPU exhausted, large data volume on the single-machine
If a long-consuming task is issued to the MONGODB server, the client-forced termination causes the task to continue executing on the server side.MongoDB now provides a way to query and manage the tasks that are being performed.Db.currentop ()
1. Installation Replica Set IntroductionA replica set (Replica set) is a cluster of MongoDB instances consisting of a primary (Primary) server and multiple backup (secondary) servers. With replication, updates to the data are pushed from primary to
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