mongodb - Strapi - 服务器无法正常启动
问题描述
我正在 Flutter 中构建应用程序。我已将 Strapi 与 Mongodb Atlas 连接起来。一切都很好,直到突然我收到这种错误:
[2020-08-03T17:03:26.651Z] debug ⛔️ Server wasn't able to start properly.
[2020-08-03T17:03:26.652Z] error Error connecting to the Mongo database. Server selection timed out
after 30000 ms
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! server@0.1.0 develop: `strapi develop`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the server@0.1.0 develop script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
我的集群已连接,我不知道会出现什么问题。知道我该怎么做吗?
解决方案
显然我的ip已经改变了。所以我要做的就是在mongodb atlas中添加我的新ip。在我的集群 -> 安全 -> 网络访问 - 添加 IP 地址。
这就是它
推荐阅读
- python - Return Multiple Dataframes in a Python Function
- python - 基于 JSON 在 Django 查询集上创建一个额外的列
- java - 如何根据使用spring JPA输入的字符串查找和显示数据
- python - 使用python PIL获取特定颜色像素的x,y值
- c++ - 在子类函数中访问超类朋友的受保护数据成员
- html - 向右移动菜单项
- hyperledger-fabric - 如何限制对 Fabric 中某些“类型”用户的函数调用?
- python - Python数据框HTML显示在jupyter之外
- javascript - 如何为我的幻灯片添加过渡滑动图像?
- r - R:plot3D scatter3D,有 coord_fixed() 选项吗?