简体   繁体   中英

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. after replaced settings.py like bellow:

` DATABASES = {

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

   }

}

then I excuted this command systemctl restart gunicorn

here is the screenshot:

EC2 screebshot

You need to check Nginx configuration on your OS. The error says that the configuration was incorrect.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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