Unable to launch mongos

十年热恋 提交于 2019-12-03 16:07:48

You have set up the config server as a standalone mongod process, but as of MongoDB 3.4 that isn't supported: it must be a replicaset:

config servers: Config servers store metadata and configuration settings for the cluster. As of MongoDB 3.4, config servers must be deployed as a replica set (CSRS).

The minimum setup is to have a single mongod process, configured as a 1-member replica set; then your mongos process connects to the replica set:

mongos --configdb replsetname/localhost:27010 --port 27011
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!