Strapi - 服务器无法正常启动
Strapi - Server wasn't able to start properly
我正在 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 地址。
这就是它
我正在 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 地址。
这就是它