2017年8月25日
摘要: http://blog.csdn.net/luonanqin/article/details/8497860 参数解释: dbpath:数据存放目录 logpath:日志存放路径 pidfilepath:进程文件,方便停止mongodb directoryperdb:为每一个数据库按照数据库名建立文 阅读全文
posted @ 2017-08-25 16:37 VincentZhu 阅读(242) 评论(0) 推荐(0) 编辑
摘要: count failed: not master{ "note" : "from execCommand", "ok" : 0, "errmsg" : "not master" } at src/mongo/shell/query.js:191 在SECONDARY节点无法show dbs 主从启动之后,连接slave可以成功连上,但是在slave中执行 show dbs 的时候就报错... 阅读全文
posted @ 2017-08-25 16:28 VincentZhu 阅读(427) 评论(0) 推荐(0) 编辑
摘要: [10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 gpgcheck=0 systemctl stop firewalld systemctl mask firewalld 关闭虚拟机防火墙: 关闭命令: service iptable... 阅读全文
posted @ 2017-08-25 16:28 VincentZhu 阅读(165) 评论(0) 推荐(0) 编辑