Django + gunicorn服务错误?

时间:2017-05-14 20:04:04

标签: django postgresql nginx gunicorn

我尝试通过此tutorial在我的服务器上部署django  我有配置gunicorn.service的问题。 当我做的时候

r

我得到了

sudo systemctl start gunicorn
sudo systemctl enable gunicorn
sudo systemctl status gunicorn

我的项目结构

gunicorn.service - gunicorn daemon
   Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled)
   Active: failed (Result: exit-code) since Sat 2017-05-13 11:47:49 MSK; 29s ago
 Main PID: 56584 (code=exited, status=203/EXEC)
May 13 11:47:49 debian systemd[1]: Starting gunicorn daemon...
May 13 11:47:49 debian systemd[1]: Started gunicorn daemon.
May 13 11:47:49 debian systemd[56584]: Failed at step EXEC spawning /opt/bl...ry
May 13 11:47:49 debian systemd[1]: gunicorn.service: main process exited, c...EC
May 13 11:47:49 debian systemd[1]: Unit gunicorn.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

我的gunicorn.service

splitpoint@debian:/opt/blog$ tree
.
├── myproject
│   ├── manage.py
│   ├── myproject
│   │   ├── gunicorn.config.py
│   │   ├── __init__.py
│   │   ├── __init__.pyc
│   │   ├── settings.py
│   │   ├── settings.pyc
│   │   ├── urls.py
│   │   └── wsgi.py
│   └── static
│       └── admin
│           ├── css
│           etc
└── venv
    ├── bin
    │   ├── activate
        etc

如何修复gunicorn以激活(运行)它?

0 个答案:

没有答案