资源暂时不可用。按密钥验证失败(错误-18)。 (错误#35)

时间:2022-09-22 12:52:43

I'm using EC2 Amazon Web Service to launch my server using NodeJS, MongoDB.

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

I completed to save and load the data using my android application through NodeJS server and MongoDB but when I tried to check the data using RoboMongo (Robo 3T), the error occurred.

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

Resource temporarily unavailable. Authentication by key (path of the .pem key) failed (Error -18). (Error #35)

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

Robomongo 1

Robomongo 1

Robomongo 2

Robomongo 2

Error dialog

错误对话框

This is what I did in Robomongo. These are the result of searching the google... I think I did right... What is wrong?

这就是我在Robomongo所做的。这些是搜索谷歌的结果...我认为我做得对...有什么问题?

1 个解决方案

#1


0  

I Solved the problem myself. When you have this problem,

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

1. Check out /etc/mongod.conf
In network interfaces.
bindIP must be 0.0.0.0 not 127.0.0.1

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

2. Check the SSH User Name. For an Amazon Linux AMI, the user name is ec2-user.
For the others, Check out the link ! https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html

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

3. If it didn't help, try to download what developer uploaded (1.2 - Beta) https://github.com/Studio3T/robomongo/issues/1189#issuecomment-353279070

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

#1


0  

I Solved the problem myself. When you have this problem,

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

1. Check out /etc/mongod.conf
In network interfaces.
bindIP must be 0.0.0.0 not 127.0.0.1

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

2. Check the SSH User Name. For an Amazon Linux AMI, the user name is ec2-user.
For the others, Check out the link ! https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html

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

3. If it didn't help, try to download what developer uploaded (1.2 - Beta) https://github.com/Studio3T/robomongo/issues/1189#issuecomment-353279070

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