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-12-20go-zero 框架的 RPC 服务 启动start和停止 底层是怎么实现的?-icode9专业技术文章分享
- 2024-12-19Go-Zero 框架的 RPC 服务启动和停止的基本机制和过程是怎么实现的?-icode9专业技术文章分享
- 2024-12-18怎么在golang中使用gRPC测试mock数据?-icode9专业技术文章分享
- 2024-12-15掌握PageRank算法核心!你离Google优化高手只差一步!
- 2024-12-15GORM 中的标签 gorm:"index"是什么?-icode9专业技术文章分享
- 2024-12-11怎么在 Go 语言中获取 Open vSwitch (OVS) 的桥接信息(Bridge)?-icode9专业技术文章分享
- 2024-12-11怎么用Go 语言的库来与 Open vSwitch 进行交互?-icode9专业技术文章分享
- 2024-12-11怎么在 go-zero 项目中发送阿里云短信?-icode9专业技术文章分享
- 2024-12-11怎么使用阿里云 Go SDK (alibaba-cloud-sdk-go) 发送短信?-icode9专业技术文章分享
- 2024-12-10搭建个人博客网站之一、使用hugo创建个人博客网站