摘要: 4,mongodb副本集的搭建 三台机器,编辑三台机器的配置文件,更改或增加: 192.168.133.130(primary) 192.168.133.132(secondary) 192.168.133.133(secondary) 第一步:设置三台机器的 /etc/mongod.conf 文件 阅读全文
posted @ 2020-12-15 22:46 pwcc 阅读(210) 评论(0) 推荐(0)
摘要: 1, 2,创建用户 use admin//需要切换到admin库 db.createUser( { user: "admin", customData: {description: "superuser"}, pwd: "admin122", roles: [ { role: "root", db: 阅读全文
posted @ 2020-12-15 22:45 pwcc 阅读(164) 评论(0) 推荐(0)