Hebei Solids Control Equipment to Thailand
solids control equipment http://chinesesolidscontrol.blogspot.com/solids control http://www.ogemsolidscontrol.com/solids control system http://www.hbequipments.com/
Mongodb secondary上面replSet error RS102 too stale to catch up
1 http://101.130.92.32:28018/_replSet 监控网站上报错:replSet error RS102 too stale to catch upTue Aug 13 05:18:06 [rsSync] replSet See http://www.mongodb.org/display/DOCS/Resyncing+a+Very+Stale+Replica+Set+Member 05:18:0...
Mongodb的master-slave模式与master-master模式实验
--Master Slave实验--创建数据目录$ mkdir /data/1$ mkdir /data/2$ mkdir /data/3--启动mongodb库$ /data/mongodb-linux-i686-1.6.0/bin/mongod --port 27020 --dbpath /data/1 --master &$ /data/mongodb-linux-i686-1.6.0/bin/mongod --port 27021 --dbpath /data/2 --master &$ /data/mongodb-linux-i686-...
Mongodb默认日志的清理!
Reference: http://docs.mongodb.org/manual/tutorial/rotate-log-files/ 1, Start a mongod with verbose logging, with appending enabled, and with the following log file: such as : mongod -v --logpath /var/log/mongodb/server1.log --logappend...
MongoDB:"errmsg" : "DBClientBase::findN: transport error:
当在重新搭建secondary,在运行rs.status(); 报如下错误 { "_id" : 2, ...
Mongodb在replicaset的secondary上补建索引
1 问题简述mongodb replicaset故障,故设置成primary单机,这时在单机上面加了index tid_1,然后设置replicaset,但是这个时候secondary没有tid_1,此时怎么办?primary上面有索引tid_1, secondary没有。2 办法是有的,就是重新在主库上面再建一遍索引。db.tickets.getIndexes();use ssodatabase;3 ...
MongoDB用户管理,Version: 2.0.2
--【】用户管理1 添加只读用户db.addUser("skyman.man","manchungood",true) 2 修改只读用户为普通用户 db.addUser("skyman.man","manchungood",false); db.addUser("admin","manchungood",false);3 删除用户db.removeUser("admin");4 切换数据库打开数据库,没有的话立即建一个...
listDatabases failed:{ "errmsg" : "need to login", "ok" : 0 }
[root@346439-eastore_db3 ~]# /db/mongodb-linux-x86_64-2.0.2/bin/mongo 127.0.0.1:37017MongoDB shell version: 2.0.2connecting to: 127.0.0.1:37017/test> show dbs;Tue May 7 06:41:53 uncaught exception: listDatabases failed:{ "errmsg" : "need to login", "ok" : 0 }> exitbye[root@346439-...
Mongodb中回收remove的磁盘空间
-- purge disk space1 首先使用rs.remove(“ip:port”)移除一个从库,使其下线。http://docs.mongodb.org/manual/tutorial/remove-replica-set-member/rs.remove("127.0.0.1:37020"); 2 关闭下线的mongod进程,kill -2 pid kill the pid3 删除其datapath下的所有文件rm -rf all datafiles...
error RS102 too stale to catch up
error RS102 too stale to catch up google之后,看到很多文章都指向了oplogSize大小.官方文档 Resyncing a Very Stale Replica Set Member 也告诉了问题所在,OPLOG。OPLOG 是用于 Replica Set的 PRIMARY 和 SECONDARY 之间同步数据的系统 COLLECTION。OPLOG 的数据大小是有峰值的,64 位机器默认...
Mongodb中replicaset的搭建以及部署
-- mongodb replicaset的搭建1 download the install packagewget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.3.tgz (地址不一定对,自己去官网下在最新的版本)2 uncompress the packagetar -xvf mongodb-linux-x86_64-2.0.2.tgzmv mongodb-linux-x86_64-2.0.2 /usr/local/mongo...
mongovue 以及mongo shell中对日期查询命令的记录
-- in mongovue window{"date":{$lt:ISODate("2013-01-17T01:16:33.303Z")}}点击find 窗口,然后选择5条记录,就会快速的查询出来 -- in mongo shell windowdb.tickets.find({"date":{$lt:ISODate("2013-01-17T01:16:33.303Z")}}).limit (5);
mongo shell中特殊判断符号转义的问题
[root@mongo ~]# bash -x t.sh+ /usr/local/mongodb/bin/mongo 127.0.0.1:37017/test -uadmin -padmin --quiet --eval 'printjson(db.tickets.findOne({date:{:ISODate(2013-01-10T01:16:33.303Z)}},{_id:1}))'Fri Apr 26 15:32:49 SyntaxError: invalid property id (shell eval):1用bash来进行调试问...
mongodb清理collection中大量数据的2种办法
1 shell中for循环清理每次去连接一下mongo, 进行数据的remove操作echo "Begin ..." >> /root/time.log;echo $(date +%Y-%m-%d-%H:%M:%S) >>/root/time.log;for((i=1;i<=100000000;i++)); do objectid=`/usr/local/mongodb/bin/mongo 127.0.0.1:37017/test -uadmin -padmin --quiet --eval "printjson(...
Heibei solids control CBM Drilling fluids cleaning system
solids control equipment http://chinesesolidscontrol.blogspot.com/solids control http://www.ogemsolidscontrol.com/solids control system http://www.hbequipments.com/
"$err" : "not master and slaveok=false", "code" : 13435
monbodb安装完之后, 启动准备添加用户报错.> use adminswitched to db admin> db.addUser("admin","admin",false);Wed Apr 24 14:17:26 uncaught exception: error { "$err" : "not master and slaveok=false", "code" : 13435 }> 去check下 install 以及start 过程/usr/local/mongodb/bin/mong...
Heibei solids control presenting the 2012 OTC with the Largest Solids Control
solids control equipment http://chinesesolidscontrol.blogspot.com/solids control http://www.ogemsolidscontrol.com/solids control system http://www.hbequipments.com/
MongoDB安装以及数据初始化海量数据
1 download the install packagewget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.2.3.tgz2 uncompress the packagetar -zxvf mongodb-linux-x86_64-2.2.3.tgzmv mongodb-linux-x86_64-2.2.3 /usr/local/mongodb3 start the mongod service/usr/local/mongodb/bin/mongod -port 27107 --db...
MongoDB报错:"assertion" : "can't map file memory"
PRIMARY> use identify;switched to db identifyPRIMARY> db.dropDatabase();{ "assertion" : "Can't take a write lock while out of disk space", "assertionCode" : 14031, "e...
利用Mongodb的复制集搭建高可用分片,Replica Sets + Sharding的搭建过程
参考资料 reference: http://mongodb.blog.51cto.com/1071559/740131 http://docs.mongodb.org/manual/tutorial/deploy-shard-cluster/#sharding-setup-shard-collection 感谢网友1 Start the Config ServerDatabase Instances?2 Start themongos Instances 4.1 the first se...