mongos上的MongoDB错误:位置选项过多 [英] MongoDB error on mongos: too many positional options
本文介绍了mongos上的MongoDB错误:位置选项过多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试运行一个批处理脚本,该脚本应该是我在mongodb上的第一个分片.它在此行中显示以下错误:
I am trying to run a batch script which is suppose to be my first ever sharding on mongodb. It shows following error in this line:
D:\mongodb-win32-x86_64-2.2.3\bin>mongos --configdb localhost:26050, localhost:26051, localhost:26052 --logappend --logpath log.mongos0
error command line: too many positional options
use --help for help
推荐答案
位置运算符过多"错误表示您提供的命令行参数和值的数量不匹配.
The "too many positional operators" error means you have a mismatch in the number of command line parameters and values provided.
具体来说,配置服务器名称之间的空格被解释为不同的(未知)参数.
Specifically, the spaces between names of config servers are being interpreted as different (unknown) parameters.
更正的命令行:
mongos --configdb localhost:26050,localhost:26051,localhost:26052 --logappend --logpath log.mongos0
这篇关于mongos上的MongoDB错误:位置选项过多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文