【发布时间】:2016-08-11 13:22:30
【问题描述】:
我正在尝试使用 nginx gunicorn 部署 django 项目的每个人,但是当我运行时
sudo 服务 gunicorn 启动, 它说, start: 作业启动失败,
gunicorn.conf 文件
/etc/init/gunicorn.conf
description "Gunicorn application server handling myproject"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
setuid user
setgid www-data
chdir /home/parallels/books/mysite
exec myprojectenv/bin/gunicorn --workers 3 --bind unix:/home/parallels/books/mysite/mysite.sock mysite.wsgi:application
当我跑步时
gunicorn --bind 0.0.0.0:8000 mysite.wsgi:application
我可以看到我的网站正在运行
但是当我尝试时
sudo service gunicorn start
失败,,, 我只是following the instruction here
哪位能回复一下,非常感谢
【问题讨论】: