mongodb副本集配置

准备: 3台安装好mongodb3.6的服务器 192.168.2.252:27017 192.168.2.179:27017 192.168.2.180:27017 各自放开防火墙端口,关闭selinux 配置文件 mongodb.conf systemLog: destination: file logAppend: true #log文件路径 path: db_path/mongodb.log storage: #db文件路径 dbPath: data_path journal: enabled: true directoryPerDB: true wiredTiger: engineConfig: #最大可使用内存 configString : cache_size=