简体   繁体   English

当我在ubuntu的mongo终端中运行show dbs时,命令没有运行

[英]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.

相关问题 从ubuntu上运行sublime text 3的终端命令 - terminal command for running sublime text 3 from on ubuntu 导航到特定文件夹时如何在终端上自动运行命令? - How to run a command automatically on a terminal when I navigate to a particular folder? 在ubuntu终端中运行程序时,如何摆脱“ ./”? - how can I get rid of of “./” when i run a program in ubuntu terminal? Linux终端:更改目录时运行命令 - Linux terminal: Run command when changing directory 终端打开时运行命令(Linux) - Run a Command When Terminal Opens (Linux) 坏URI(不是URI?)在ubuntu终端上运行rails时 - bad URI(is not URI?) When running rails s in ubuntu terminal 为什么我可以在 linux 终端中运行 flutter 命令,但不能在 vscode 终端中运行? - Why i can run flutter command in linux terminal, but not in vscode terminal? 打开一个ubuntu终端并运行终端命令,例如“`./executable -x -y`”。 - open a ubuntu terminal and run terminal command like“`./executable -x -y`” form java code 如何查看终端的运行时间? (Ubuntu用户) - How can I see the running time of the terminal? (Ubuntu user) 我有一些代码,其中的一个命令在终端上运行正常,但是从脚本运行时失败 - I have a bit a of code that has one command that runs fine on the terminal but fails when running from a script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM