[英]command not running when i run show dbs in mongo terminal in ubuntu
When running the following command: 运行以下命令时:
mongos --configdb 10.8.15.175:27019,10.8.14.89:27019,10.8.9.100:27019
I get this error: 我收到此错误:
FailedToParse: mirrored config server connections are not supported; FailedToParse:不支持镜像配置服务器连接; for config server replica sets be sure to use the replica set connection string 对于配置服务器副本集,请务必使用副本集连接字符串
Can you help me figure out what's wrong? 你能帮我弄清楚什么是错的吗?
I imagine you are running MongoDB 3.4 binaries here? 我想你在这里运行MongoDB 3.4二进制文件? From version 2.2 MongoDB added support for configuration servers to run as a replica set (whereas they used to be a special set of nodes that synced via another mechanism). 从版本2.2开始,MongoDB添加了对配置服务器的支持,以作为副本集运行(而它们曾经是通过其他机制同步的一组特殊节点)。 In 3.4, it became required to use replica sets. 在3.4中,它需要使用副本集。 In this situation you need to specify the name of the replica set of the config, as per @Josh's post: 在这种情况下,你需要指定配置的副本集的名称,根据@Josh的帖子:
<config replset name>/<host1:port>,<host2:port>,[...]
用于与配置服务器通信的连接字符串: <config replset name>/<host1:port>,<host2:port>,[...]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.