#本次配置时间为 2014-11-06 software version: mongodb-linux-x86_64-2.4.3.tgzLinux:centos 5.9 64bit##############################################################This deployment of shards is only for the test environment: #10.8.10.234 10.8.10.235 10.8.10.236 #
In our previous blog, we focused on how to build a MongoDB replica set under the Windows platform. Detailed Blog Address:As space is limited in the previous article did not verify the results, in this blog we mainly test:Through the Rs.status ()
In this blog we mainly talk about the access control including limitation of IP, setting listen port and usage of username and password. In the official document, MongoDB server start without the argument, so once the connection is created, the
PHP/*PHP MongoDB * All curd operation * @author: Xiaojiang * @date: 2014-10-27*///view Mongo class version 1.30 later versions using Mongoclient//mongo::version;/*Connection*/ $m=NewMongo ("Mongodb://cms:[email protected]:55555/banggocms");
perform a two-step commit OverviewThis section provides a multi-record update or multi-record transaction, using a two-step commit to complete a multi-record write template. In addition, this method can be extended to provide rollback-like
In the previous series of articles, we described the basic operations of MongoDB, advanced queries, and the use of indexes. This blog mainly describes how the Windows system to create master-slave database synchronization;Need to start two MongoDB
MongoDB's Open Default startup:$./mongodb Default data save path:/data/db/default port: 27017To Modify the default path: --dbpath$./mongdb--dbpath/mongodb/point the data storage location to a directory of your own/mongodb/To Modify the default port:-
(1) Database commandsA) Add user db.adduser (' name ', ' pwd ')b) Delete user db.removeuser (' name ')c) User authentication Db.auth (' name ', ' pwd ')d) Copy database, copy db.copydatabase from Test library (' Test ', ' mydb ')e) Delete Database
MongoDB not too much introduction, NoSQL One, is a document-oriented database, with its convenient and flexible data structure, for developers is relatively friendly, and the speed of query is relatively fast, and now a lot of sitesStart using
Using Mongoose to manipulate MongoDB in BaeAlmost all of the examples on the web using mongoose are long-connected, because the relationship between the Nodejs itself mechanism, the use of long connections to some extent will improve performance,
Large SkipWhen paging the data, it is generally necessary to skip how many records and limit how many records, such as in MySQL: SELECT * from large_table ORDER by ' id ' LIMIT 10000, 30 This process is slow because the database needs to be
MongoDB Import Script#!/bin/shEcho"${0} Import data to MongoDB"Tagfile="/srv/mss_data/dim_customerex_mobile_stat_ ' Date +%y%m%d-d"-1 Day"'. Log"Impdatafile="/srv/mss_data/dim_customerex_mobile_stat_ ' Date +%y%m%d-d"-1 Day"'.
First, the environmentOperating system:# uname-r2.6.32-358.el6.x86_64# Cat/etc/issuecentos Release 6.4 (Final) Kernel \ r on an \mMaster: 192.168.137.148From: 192.168.137.154Second, master-slave synchronization system time#ntpdate ntp.api.bz &&
MongoDB database is also inseparable from the necessary maintenance, such as backup, recovery, import, export.In fact, backup and recovery is easier than import and export, and generally does not make mistakes, so most of the time using backup and
Step 1Open Mongovue and connect to the server that contains the collection "Cities"Step 2Right-click on "Cities" collection under "Database Explorer", and select "MapReduce". This would launch the MapReduce view.Step 3Write the JavaScript code for
Magic MongoDB tool Tools is a MongoDB database Management Tools For simple database management work. This tool developed for the Chinese, Project address: Magicmongodbtool, currently the author has completed the basic function development. It is a
The default database directory for MongoDB in Windows is C:\Data. If you run Mongod.exe directly without the directory, the following error is reported:In some cases, we do not want to put MongoDB database on the C disk, there are two ways to switch
With Ruiy brother to play with it; 1, turn off SELinux (Ruiy, according to experience, Red Hat's selinux erection is a mistake, remember that no matter what the structure of the first to shut down is it); 2, set iptables release port=27017; 3,
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