在MongoDB中添加副本会引发错误

com*_*sny 6 replication mongodb database-replication

我正在尝试使用一个节点添加到副本集 rs.add("developer-ViratualBox:30103"),我收到以下错误消息:

{
"ok" : 0,
"errmsg" : "Quorum check failed because not enough voting nodes responded; required 2 but only the following 1 voting nodes responded: developer-VirtualBox:30101; the following nodes did not respond affirmatively: developer-ViratualBox:30103 failed with Failed attempt to connect to developer-ViratualBox:30103; couldn't initialize connection to host developer-ViratualBox, address is invalid",
"code" : 74
}
Run Code Online (Sandbox Code Playgroud)

该节点已在运行,我使用mongoshell 连接到它.可能是什么问题?

com*_*sny 1

缺少的一点是,我尝试添加的实例没有在定义的端口启动 mongod 实例。因此给定的连接参数不正确,从而导致通信问题。