简体   繁体   English

我无法在 AWS EC2 上启动 gunicorn

[英]I can't start gunicorn on AWS EC2

I was going to update to using sqlite database into the mysql database on my django project.我打算更新到在我的 Django 项目中使用 sqlite 数据库到 mysql 数据库中。 after replaced settings.py like bellow:如下替换 settings.py 后:

` DATABASES = { ` 数据库 = {

   'default': {
       'ENGINE': 'django.db.backends.mysql',
       'NAME': '*',
       'USER': '*',
       'PASSWORD': '*',
       'HOST': 'localhost',
       'PORT': '***',

   }

} }

then I excuted this command systemctl restart gunicorn然后我执行了这个命令systemctl restart gunicorn

here is the screenshot:这是屏幕截图:

EC2 screebshot EC2 截图

You need to check Nginx configuration on your OS.您需要检查操作系统上的 Nginx 配置。 The error says that the configuration was incorrect.该错误表示配置不正确。

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

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