我正在尝试使用YAML格式的配置文件启动mongos。它抛出错误说“无法识别的选项: sharding.configDB”。我在centos6上运行它。
任何帮助都将受到高度的感谢。
配置文件:
systemLog:
destination: file
path: REPLACEWITHLOGPATH
quiet: true
processManagement:
fork: true
net:
bindIp: REPLACEWITHIP
port: REPLACEWITHPORT
storage:
dbPath: REPLACEWITHDBPATH
sharding:
clusterRole: shardsvr
configDB: "172.16.4.61:27019" 发布于 2014-08-04 08:56:54
我认为您需要从您的mongos配置文件中删除clusterRole: shardsvr
https://stackoverflow.com/questions/25083647
复制相似问题