Robomongo & Meteor mongodb 本地主机连接失败

Robomongo & Meteor mongodb localhost connection failure

我在 localhost:3000 上有一个 Meteor 应用 运行。

尝试使用 Robomongo 连接到它会导致 "Authorization skipped by you" 失败。

.

我的设置与 this answer 中发布的设置相同,因此我没有触及任何其他配置选项卡。

应该没有问题。您可以保存连接并连接到 Mongo 吗?

首先在Robomongo中保存连接

  • 请确保您的项目在本地主机中 运行。
  • 并打开 Robomongo GUI 工具并打开保存连接。

编辑

/etc/mongod.conf

评论

bind_ip = 127.0.0.1

#bind_ip = 127.0.0.1

保存。

重新启动服务:

service mongod restart

大功告成。

您应该看到文件 /etc/mongodb.conf,并使用该信息进行配置。

就我而言,我错误地编写了 mongodb 端口,并更正了它并且它起作用了。

默认端口为 27017

实际上,您不会将 Robomongo 与您的 meteor 应用程序连接,而只是与 MongoDB 本身连接。

Default address is: localhost
Default port: 27017

不需要身份验证

请确保您输入了正确的 IP 地址。我输入了错误的 ip 得到了相同的响应。