#昊鼎王五:如何解决“BadValue need either 1 or 3 configdbs”报错?
在配置启动mongos进程,发现一次报错:“BadValue need either 1 or 3 configdbs”
如下图:
根源定位:
就是mongos.conf中只配置1个或者3个configdbs,其他的值就是错误的。所以并不是越多越好啊。
解决方案:
在mongo_mongos.conf配置文件的
configdb=IP1:PORT
或者
configdb=IP1:PORT,IP2:PORT,IP3:PORT
好了,聪明如你,知道了解决“BadValue need either 1 or 3 configdbs”报错的方法,是不是很欢喜 _
还有其他问题的可以在评论区留言或者扫码加博主获取资源或者提问。