Django Gunicorn Upstart文件未启动

Django Gunicorn Upstart文件未启动,django,ubuntu,nginx,gunicorn,Django,Ubuntu,Nginx,Gunicorn,我正在尝试使用gunicorn和nginx启动一个应用程序,并多次返回以删除和更改文件。这一次,我遇到了一些问题 我首先创建了一个upstart文件… sudo nano/etc/init/gunicorn.conf description "Gunicorn application server handling flowershop" start on runlevel [2345] stop on runlevel [!2345] respawn setuid ubuntu setgi

我正在尝试使用
gunicorn
nginx
启动一个应用程序,并多次返回以删除和更改文件。这一次,我遇到了一些问题

我首先创建了一个upstart文件…

sudo nano/etc/init/gunicorn.conf

description "Gunicorn application server handling flowershop"

start on runlevel [2345]
stop on runlevel [!2345]

respawn
setuid ubuntu
setgid www-data
chdir /home/ubuntu/flowershop

exec env/bin/gunicorn --workers 3 --bind unix:/home/ubuntu/flowershop/flowershop.sock flowershop.wsgi:application
然后我跑了…

开始了

我必须更改它创建的套接字的名称,因此我删除了
/etc/init/gunicorn.conf
upstart文件,创建了一个与上一个同名的新upstart文件,并尝试运行
sudo服务gunicorn start

它现在返回与以下命令对应的以下错误消息…

&&


这显然与我的干预有关,但我一点也不知道如何解决它

最简单的方法是尝试重新装入液滴

sudo shutdown -r now

我有确切的错误。在哪里可以找到解决方案?@JeyachandranRathnam我只需重新启动我的Amazon EC2实例,然后重新开始。在那一点上它起了作用。有时事情会陷入困境。我不得不重新创建droplet(我使用的是digitalocean),它在新安装的情况下运行良好。哦,好吧,至少它现在修好了!谢谢@JeyachandranRathnam哈哈。是的,有时候你得拔掉插头!这个问题有一些漏洞,因为你不再寻求答案也许最好删除这个问题当你不能重新启动你的机器的时候怎么办?!
sudo service gunicorn start

start: Job failed to start
sudo service gunicorn stop

stop: Unknown instance: 
sudo shutdown -r now