节点红色MongoDB连接错误:未能连接到[123:27017]。

问题描述 投票:0回答:1

我试图从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

谁能告诉我哪里出了问题?

node.js mongodb node-red
1个回答
0
投票

看起来你已经输入了 "123 "作为你的MongoDB的Host。

我刚刚在我的本地Node-RED流程中做了一个快速测试,连接到 "127 "作为Host,看到了这个错误。

[错误] [mongodb out:cd232f6a.63efc8] 错误:未能连接到 [127:27017] 。

所以在你的流程中更新你的主机,你应该可以连接到MongoDB。

© www.soinside.com 2019 - 2024. All rights reserved.