简体   繁体   English

Mongodb Atlas 连接问题

[英]Mongodb Atlas connection issue

I just created a cluster in Mongodb Atlas and I can't connect to it either by my application or by the compass, the compass says: the certificate is not yet valid.我刚刚在 Mongodb Atlas 中创建了一个集群,但我的应用程序或指南针都无法连接到它,指南针说:证书尚未生效。

mongodb+srv://tbussola:@tindintest.fptqm.mongodb.net/test mongodb+srv://tbussola:@tindintest.fptqm.mongodb.net/test

In the application of moongose it points out: ould does not connect to any server in your MongoDB Atlas cluster.在 Moongose 的应用中指出:ould 不会连接到您的 MongoDB Atlas 集群中的任何服务器。 A common reason is that you are trying to access the database from an IP that is not whitelisted.一个常见原因是您尝试从未列入白名单的 IP 访问数据库。 Make sure that your current IP address is on the Atlas cluster IP whitelist: https://docs.atlas.mongodb.com/security-whitelist/确保您当前的 IP 地址在 Atlas 集群 IP 白名单中: https : //docs.atlas.mongodb.com/security-whitelist/

mongodb+srv://tbussola:@tindintest.fptqm.mongodb.net/?retryWrites=true&w=majority mongodb+srv://tbussola:@tindintest.fptqm.mongodb.net/?retryWrites=true&w=majority

My ip is already listed in the whitelist and it is also enabled to allow any ip.我的 ip 已经在白名单中,并且它也被启用以允许任何 ip。 What should I do now?我现在该怎么办? I'm using Linux manjaro, I'm a beginner.我正在使用 Linux manjaro,我是初学者。

I was facing the same issue.我面临着同样的问题。 After a lot of research I finally found this: certificate is not yet valid .经过大量研究,我终于发现: 证书尚未生效 The time on my pc was not my actual local time.我电脑上的时间不是我的实际当地时间。 After I sync my time from windows settings.在我从 Windows 设置同步我的时间之后。 Connection worked.连接工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM