mongo1的5个配置文件
2021/9/17 23:35:12
本文主要是介绍mongo1的5个配置文件,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
前言:这是文章<<单机搭建mongo集群,3个分片集>>配套配置文件
链接:https://editor.csdn.net/md?articleId=120353582
cd /data/mongo1/conf
mongo1 配置节点的配置文件
[root@node4 conf]# cat configsvr.conf systemLog: destination: file path: "/data/mongo1/logs/configsvr27100.log" logAppend: true storage: journal: enabled: true dbPath: "/data/mongo1/db_configsvr/" directoryPerDB: true wiredTiger: engineConfig: cacheSizeGB: 1 directoryForIndexes: true collectionConfig: blockCompressor: zlib indexConfig: prefixCompression: true net: bindIp: 127.0.0.1,192.168.199.204 port: 27100 replication: oplogSizeMB: 2048 replSetName: csvr sharding: clusterRole: configsvr processManagement: fork: true
mongo1 配置shard1的配置文件
[root@node4 conf]# cat shard1.conf systemLog: destination: file path: "/data/mongo1/logs/shard1_27017.log" logAppend: true storage: journal: enabled: true dbPath: "/data/mongo1/db_shard1" processManagement: fork: true net: bindIp: 127.0.0.1,192.168.199.204 port: 27017 setParameter: enableLocalhostAuthBypass: false replication: replSetName: "rs0" sharding: clusterRole: shardsvr
mongo1 配置shard2的配置文件
[root@node4 conf]# cat shard2.conf systemLog: destination: file path: "/data/mongo1/logs/shard2_27018.log" logAppend: true storage: journal: enabled: true dbPath: "/data/mongo1/db_shard2" processManagement: fork: true net: bindIp: 127.0.0.1,192.168.199.204 port: 27018 setParameter: enableLocalhostAuthBypass: false replication: replSetName: "rs1" sharding: clusterRole: shardsvr
mongo1 配置shard3的配置文件
[root@node4 conf]# cat shard3.conf systemLog: destination: file path: "/data/mongo1/logs/shard3_27019.log" logAppend: true storage: journal: enabled: true dbPath: "/data/mongo1/db_shard3" processManagement: fork: true net: bindIp: 127.0.0.1,192.168.199.204 port: 27019 setParameter: enableLocalhostAuthBypass: false replication: replSetName: "rs2" sharding: clusterRole: shardsvr
mongo1 配置路由节点配置文件
[root@node4 conf]# cat mongos.conf systemLog: destination: file path: "/data/mongo1/logs/mongos28100.log" logAppend: true net: bindIp: 127.0.0.1,192.168.199.204 port: 28100 # 将confige server 添加到路由 sharding: configDB: csvr/192.168.199.204:27100,192.168.199.204:27200,192.168.199.204:27300 processManagement: fork: true
这篇关于mongo1的5个配置文件的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-15SendGrid 的 Go 客户端库怎么实现同时向多个邮箱发送邮件?-icode9专业技术文章分享
- 2024-11-15SendGrid 的 Go 客户端库怎么设置header 和 标签tag 呢?-icode9专业技术文章分享
- 2024-11-12Cargo deny安装指路
- 2024-11-02MongoDB项目实战:从入门到初级应用
- 2024-11-01随时随地一键转录,Google Cloud 新模型 Chirp 2 让语音识别更上一层楼
- 2024-10-25Google Cloud动手实验详解:如何在Cloud Run上开发无服务器应用
- 2024-10-24AI ?先驱齐聚 BAAI 2024,发布大规模语言、多模态、具身、生物计算以及 FlagOpen 2.0 等 AI 模型创新成果。
- 2024-10-20goland工具下,如修改一个项目的标准库SDK的版本-icode9专业技术文章分享
- 2024-10-17Go学习:初学者的简单教程
- 2024-10-17Go学习:新手入门完全指南