0

我正在尝试从 Node Red 连接到 Mongodb 并显示以下错误..

Error: failed to connect to [123:27017]

我检查了我的密码,它从命令行工作正常并且能够执行操作。下面是MongoDB配置文件参数。

bind_ip = 127.0.0.1
port = 27017

-# Turn on/off security.  Off is currently the default
 # noauth = true

auth = true

有人可以建议我哪里出错了吗?

4

1 回答 1

0

看起来您已输入“123”作为 mongoDB 的主机。

我刚刚做了一个快速测试,在我的本地 Node-RED 流中连接到“127”作为主机,并看到了这个错误。

[错误] [mongodb out:cd232f6a.63efc8] 错误:无法连接到 [127:27017]

因此,在流程中更新您的主机,您应该能够连接到 MongoDB。

于 2015-03-02T10:06:17.260 回答