简体   繁体   English

MongoDB Atlas 连接 ip 共享主机问题

[英]MongoDB Atlas connection ip problem with shared host

Hey Guys I have a problem connecting with MongoDB atlas it works fine in Heroku and localhost but when I use GoDaddy shared host I got this error and I put IP address 0.0.0/0 but the same problem error message: Could not connect to any servers in your MongoDB Atlas cluster.嘿,伙计们,我在连接 MongoDB 地图集时遇到问题,它在 Heroku 和 localhost 中运行良好,但是当我使用 GoDaddy 共享主机时出现此错误,我将 ZA12A3079E14CED46E69BA02B8A90B21 错误消息:Could not.08A90B21 MongoDB Atlas 集群中的服务器。 One common reason is that you're trying to access the database from an IP that isn't whitelisted.一个常见原因是您尝试从未列入白名单的 IP 访问数据库。 Make sure your current IP address is on your Atlas cluster's IP whitelist确保您当前的 IP 地址在您的 Atlas 集群的 IP 白名单中

go to your mongodb unstallation folder ex: C:\Program Files\MongoDB\Server\4.4\bin then change the bindIp to your Ip address and save. go to your mongodb unstallation folder ex: C:\Program Files\MongoDB\Server\4.4\bin then change the bindIp to your Ip address and save. After that restart the mongodb server.之后重新启动 mongodb 服务器。

Just like your question says you have to check what ip address GoDaddy is using and add that to the “whitelist”.就像您的问题说您必须检查 GoDaddy 正在使用的 ip 地址并将其添加到“白名单”中。 If I remember correctly there should be a tab for security on Atlas that allows you to add it.如果我没记错的话,Atlas 上应该有一个安全选项卡,允许您添加它。

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

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