【问题标题】:Resource temporarily unavailable. Authentication by key failed (Error -18). (Error #35)资源暂时不可用。密钥验证失败(错误 -18)。 (错误 #35)
【发布时间】:2018-09-22 22:24:17
【问题描述】:

我正在使用 EC2 Amazon Web Service 来使用 NodeJS、MongoDB 启动我的服务器。

我通过 NodeJS 服务器和 MongoDB 使用我的 android 应用程序完成了保存和加载数据,但是当我尝试使用 RoboMongo (Robo 3T) 检查数据时,发生了错误。

资源暂时不可用。密钥验证(.pem 密钥的路径)失败(错误 -18)。 (错误 #35)

Robomongo 1

Robomongo 2

Error dialog

这就是我在 Robomongo 中所做的。 这些是搜索谷歌的结果......我认为我做对了...... 怎么了?

【问题讨论】:

    标签: node.js mongodb amazon-ec2 robo3t


    【解决方案1】:

    我自己解决了这个问题。 当你遇到这个问题时,

    1.查看 /etc/mongod.conf
    在网络接口中。
    bindIP 必须为 0.0.0.0 不是 127.0.0.1

    2。检查 SSH 用户名。 对于 Amazon Linux AMI,用户名为 ec2-user。
    对于其他人,请查看链接! https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html

    3。如果没有帮助, 尝试下载开发者上传的内容(1.2 - Beta) https://github.com/Studio3T/robomongo/issues/1189#issuecomment-353279070

    【讨论】:

      猜你喜欢
      • 2020-12-16
      • 1970-01-01
      • 2020-12-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-21
      相关资源
      最近更新 更多