一: MongoDB Atlas cluster连接失败
最近在学习node.js, 然后突然有一天发现连接不上了.
Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist:
- 找了好几篇文章也没有介绍得很详细, 于是自己翻看全是英文的 MongoDB 开发者界面. 看到了一个network Access, 我一猜就是这里. 嗯, 果然没错.
- 点击编辑, 更改/32前面的ip. IP地址/子网掩码
- 如果你还不晓得自己的电脑ip, 这就过分了. 但没关系, 百度一下, 你就知道.