Strapi:调试⛔️服务器无法正常启动 [英] Strapi : debug ⛔️ Server wasn't able to start properly
本文介绍了Strapi:调试⛔️服务器无法正常启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请解决我的问题.
当我尝试50次以上时,它会起作用.现在尝试100次以上无法正常工作.
It works when I try more than 50 times. Now it does not work I try 100+ times.
我启动此->捆绑新服务器
I start this -> strapi new server
� Starting to create your Strapi application.
? Choose your installation type Custom (manual settings)
? Choose your main database: MongoDB
? Database name: server
? Host: @cluster0-8tfpd.mongodb.net
? +srv connection: true
? Port (It will be ignored if you enable +srv): 27017
? Username: deep
? Password: *******
? Authentication database (Maybe "admin" or blank):
? Enable SSL connection: true
⏳ Testing database connection...
It might take a minute, please have a coffee ☕️
The app has been connected to the database successfully!
� Application generation:
√ Copy dashboard
√ Install plugin settings-manager.
√ Install plugin content-type-builder.
√ Install plugin content-manager.
√ Install plugin users-permissions.
√ Install plugin email.
√ Install plugin upload.
√ Link strapi dependency to the project.
� Your new application server is ready at E:\Dev. Project\Flutter\flutter_ecommerce\server.
⚡️ Change directory:
$ cd server
⚡️ Start application:
$ strapi start
但是问题是-> stradi start
But problem is -> strapi start
[2019-06-15T09:34:30.604Z]调试⛔️服务器无法正常启动. [2019-06-15T09:34:30.609Z]错误确保您的MongoDB数据库正在运行...
[2019-06-15T09:34:30.604Z] debug ⛔️ Server wasn't able to start properly. [2019-06-15T09:34:30.609Z] error Make sure your MongoDB database is running...
推荐答案
您应在./config/environment/.../database.json
uri
应该是mongodb://<host>:<port>/<database name>
这篇关于Strapi:调试⛔️服务器无法正常启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文