随笔- 807  文章- 150  评论- 23  阅读- 151万 

随笔分类 -  NoSQL MongoDB 分片与副本集(五)集群配置文件参数

mongoDB 分片集群常用指令
摘要:1.帮助指令:sh.help(),查看有哪些指令及其含义和使用方法。 mongos> sh.help() sh.addShard( host ) server:port OR setname/server:port sh.enableSharding(dbname) enables sharding 阅读全文
posted @ 2020-02-28 14:16 xibuhaohao 阅读(854) 评论(0) 推荐(0) 编辑
mongodb 集群配置文件
摘要:本文档是在mongodb为3.4下编写的,仅作为参考,详细内容请参考:https://docs.mongodb.com/manual/reference/configuration-options/#configuration-file 一.说明 配置mongodb有两种方式,一种是通过mongod 阅读全文
posted @ 2019-08-16 15:58 xibuhaohao 阅读(836) 评论(0) 推荐(0) 编辑
MongoDB bindIp 与 bindIpAll
摘要:Linux服务器上安装MongoDB后,允许其它客户端IP访问MongoDB服务器。阿里云服务器需要设置入站规则,可参见使用外网访问阿里云服务器ZooKeeper 1.允许所有地址访问 1.允许所有地址访问 NOTE:net.bindIp and net.bindIpAll are mutually 阅读全文
posted @ 2019-08-16 14:47 xibuhaohao 阅读(10622) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示