After you stop balancer, back up the entire Shard library, and then enable balancer to delete the Shard set merge rebuild. Encountered the following error:Mongos> Db.businessInfo.drop ();2016-08-14t09:06:58.324+0800 E QUERY Error:drop failed: {"Code": 13331,"OK": 0,"ErrMsg": "Exception:collection ' s metadata is undergoing changes. Please try again. "}At Error (At Dbcollection.drop (src/mongo/shell/collection.js:620:15)at (Shell): 1:12 at src/
PHP Configuration MONGO Extensions
a) Download Php_mongo.dll
Official Download Address:
Http://www.php.net/manual/en/mongo.installation.php#mongo.installation.windows
See the version of the file when downloading, the same as the version you use PHP
If the version is using the wrong MONGO extension cannot be enabled, download and drop it into the PHP extension folder
b) Modify the php.ini file
Add ex
Issue: MONGO run Error: Failed to connect 127.0.0.1:27017,reason:errno:10061 Unable to connect due to target computer actively rejectingIn the MongoDB installation process encountered problems, first understand the MongoDB installation steps1. Download the corresponding version on the MongoDB website, https://www.mongodb.org/downloads2. Unzip the downloaded file to the C drive or the D packing directory3. Use the cmd command mkdir data to create the d
Spring inherits MONGO is using Spring-data.If you need to add two MONGO with Spring integrated package, Spring-data-commons-1.7.0.release.jar,spring-data-mongodb-1.4.0.release.jar.Configuration of the MONGOXML version= "1.0" encoding= "UTF-8"?>Beansxmlns= "Http://www.springframework.org/schema/beans"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"Xmlns:context= "Http://www.springframework.org/schema/c
MongoDB does not support multiple table queries ? 1. Running MONGO Service Open cmd and enter e: Enter e-drive. Enter the CD E:\mongdb\bin into the directory. Enter the Mongod--dbpath E:\mongodb\data//Turn on the MONGO service and save the data in the Information folder. ? do not close cmd, close the MONGO service. ? 2. Operation Grammar Connecting to a database
Read Preference mode for MONGO
MONGO query process, the default is the primary mode, that is, from the Master node query. There are other patterns, of course. A bit of the main mode is that you can always read the latest data, the disadvantage is that the read and write at the same node, the load is relatively high.
MONGO several modes of query,
Primary: By de
service by setting up the standby node, which can reduce the pressure on the primary node, and when the client makes a data query, the request is automatically forwarded to the standby node. This setting is called the Read Preference Modes, and the Java client provides a simple way to configure it without having to manipulate the database directly.
The quorum node is a special node that does not store data by itself, and the main purpose is to decide which standby node is promoted to the primar
Tags: exe UID backup store specifies binary common conf filesIntroduction recently in learning MongoDB summed up some commands and commonly used things to do the collation of common directory files mongod 数据库部署命令 mongo 连接mongodb数据库而使用的命令 mongoimport mongodb 的导入功能 mongoexport mongodb 的导出功能 mongorestore mongodb 的二进制导入功能,一般用作数据库恢复与备份 mongodumpp mongodb 的二进制导出功能,一般用作数据库恢复与备份 mongostat 查看mongodb 的各种状态Introduction to the executable command 1. Start M
About Windows platform Building MONGO database replication Set this topic, I have written two blog posts in frontFirst article: How to build a MONGO database replica set on the Windows platformSecond: Data synchronization and fault adaptive testingIn this article, let's focus on the replication set, and analyze how it worksFirst, common scenariosLoss of network connectivity between application and databaseS
Label:The work of the hand is not very busy, so to learn to study for a long time like contact with MongoDB, but the previous period of work time are more. The records are here for future reference. Environment: Centos 7 64-bit Begin: 1. Download Mongo:wget on the websitehttps://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-3.0.3.tgz Tar-zxvfmongodb-linux-x86_64-rhel70-3.0.3.tgz There are 13 executable programs under the bin file. Where./mongo
Special characters in bat and how to handle them as characters in bat (2014-02-27 21:16:55) reproduced
Tags: bat special characters
Category: Develop
Special characters in bat and how to handle them as characters in batThe actual role of special symbols in batch processing,
Two forms of MONGO are analyzed:
1. Mongo sharding Way: 1.1. Problems with deep ploughing pagesExample: When the MONGO Shard is 5, paging query (if the creation time flashbacks query) the first page, 50 data per page, then MONGO sharding 50 data on each shard, a total of 505 data, and then summarized, calculated the f
Label:The production environment uses the MONGO database. Long-coveted for the MONGO database, its high performance/open source/modeless/document-based database/... What a tempting feature, also occasionally tossing and playing, but did not make notes, take advantage of this opportunity to pick up again.About MONGO
MongoDB is a Open-source document datab
The date format may vary, depending on the operating system:
Tuesday 2008-07-292008-07-29 Tuesday07/29/2008 TueTue 07/29/2008
Taking into account the operating system in languages other than Chinese and English, there are too many types of date formats.To standardize the current system date 2008-07-28, the direct interception of%date% variables is not possible.
"Scheme one" BAT + REG
@echo
off REM does not guarantee correct results on ope
First, the batch file is a text file, and each line of the file is a DOS command (most of the time like the command line we execute at the DOS prompt), you can use the DOS edit or Windows Notepad (Notepad) Any text file Editing tool creates and modifies a batch file.
Second, batch files are simple programs that control the flow of commands by conditional statements (if) and Process Control statements (goto), and loop statements (for) can be used to loop through a command in batch processing. Of
Tags:. JSON hang body export style bin management conf blankInstallation steps under CentOS via Yum are as follows: statement: Compared to those with the source code installed, less configuration and new log and data directory, this simple and rude, 1 , create a warehouse file, vi /etc/yum.repos.d/ Mongodb-org-3.4 .repo 2 , copy the following configuration, save exit [MongoDB -org-3.4 "name =mongodb Repository baseurl = Https:// repo.mongodb.org/yum/redhat/$ releasever/mongodb-org/3.4/x
Today want to copy some files, you need to first judge the size of the file, small certainly there is a problem does not need to replicate, after a lot of testing finally found a better way, the need for friends can refer to the
Let's start with a simple sentence code:
Copy Code code as follows:
For/f%i in (' dir/b c:\450010.jpg ') do echo%~zi
Complete Code of Judgment:
Copy Code code as follows:
@echo off
:: Copy the following page every 5 minutes
local area network, there will be a server for users to use. However, because the local area network generally rarely set up DNS servers, access to these servers, to enter the difficult to remember the IP address. This is quite troublesome for many people. Now you can give these servers an easy to remember name, and then set up IP mapping in the hosts, so that when the next visit, as long as the name of the server to enter the line.3, shielding the siteNow a lot of web sites without user consen
A recent problem has been encountered because there is a whole host of local libraries that need to be installed, and the Depedency method used before is system, because it cannot be introduced automatically when package.
Therefore, you need to create an automated install batch script:
But always after executing a MVN target automatically exit, Pause command is also invalid, analysis of the reason for the mvn itself is a bat
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.