摘要: 连接上需要关闭的副本集,使用db.shutdownServer()命令正常关闭mongod服务。对于1个仲裁、3个副本集的mongo集群,连续关闭两个secondry后,剩下的primary会自动变成secondry。 阅读全文
posted @ 2012-12-10 09:58 醇酒醉影 阅读(1570) 评论(0) 推荐(0) 编辑
摘要: 1.3.4以上版本,可以使用logRotate命令将日志文件进行切换。不过在Windows平台,需要2.0.3以上版本才行。D:\>mongo 127.0.0.1:1234MongoDB shell version: 1.8.3connecting to: 127.0.0.1:1234/test> use adminswitched to db admin> db.runCommand("logRotate"){ "ok" : 1 }>D:\mongodb208\db1>dir驱动器 D 中的卷是 D卷的序列号是 CEF6- 阅读全文
posted @ 2012-12-10 09:51 醇酒醉影 阅读(1626) 评论(0) 推荐(0) 编辑