【问题标题】:I can't start gunicorn on AWS EC2我无法在 AWS EC2 上启动 gunicorn
【发布时间】:2023-03-14 09:15:01
【问题描述】:

我打算在我的 django 项目中更新为使​​用 sqlite 数据库到 mysql 数据库中。 替换 settings.py 后,如下所示:

` 数据库 = {

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

   }

}

然后我执行了这个命令systemctl restart gunicorn

这里是截图:

EC2 screebshot

【问题讨论】:

标签: python nginx amazon-ec2 gunicorn django-mysql


【解决方案1】:

您需要检查操作系统上的 Nginx 配置。 错误表示配置不正确。

【讨论】:

    最近更新 更多