【问题标题】:Can't Connect MongoDB Atlas from mongosh terminal无法从 mongosh 终端连接 MongoDB Atlas
【发布时间】:2021-12-08 11:42:39
【问题描述】:

请帮忙,我无法连接到 mongodb atlas。我已经将 IP 访问列表设置为 anywhre (0.0.0.0/0),但我仍然无法连接到集群。

mongosh "mongodb+srv://cluster0.5g5fi.mongodb.net/test" --用户名

当前 Mongosh 日志 ID:61afebc020cde1996db***** 连接到:mongodb+srv://cluster0.5g5fi.mongodb.net/test 错误:queryTxt ETIMEOUT cluster0.5g5fi.mongodb.net

【问题讨论】:

    标签: mongodb


    【解决方案1】:

    @Agung - “请帮忙,我无法连接到 mongodb atlas。我已经将 IP 访问列表设置为 anywhre (0.0.0.0/0),但我仍然无法连接到集群。”

    如果您使用的是 MongoDB Atlas - 请确保您的更改已部署。

    这里有一些有用的阅读材料,可能也会有所帮助。

    https://studio3t.com/knowledge-base/articles/mongodb-atlas-login-ip-whitelisting/

    【讨论】:

      【解决方案2】:

      它从这里响应(我没有用户名或密码,但服务器正在响应)

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-06-08
        • 2021-12-21
        • 1970-01-01
        • 1970-01-01
        • 2020-09-13
        • 2019-10-31
        • 2019-10-13
        • 2021-06-25
        相关资源
        最近更新 更多