简体   繁体   English

在马戏团下无法启动Gunicorn

[英]Cannot start gunicorn under Circus

When I tried to run the gunicorn directly, it worked: 当我尝试直接运行Gunicorn时,它起作用了:

gunicorn -b 127.0.0.1:8081 ecerp.wsgi --chdir /var/www/django/ecerp_set/demo/ecerp/

But I kept trying with failed when using circus. 但是我在使用马戏团时一直尝试失败。

[circus]
check_delay = 5
endpoint = tcp://127.0.0.1:5555
pubsub_endpoint = tcp://127.0.0.1:5556
statsd = true

[watcher:ecerp]
cmd = gunicorn
args = -b 127.0.0.1:8081 ecerp.wsgi
working_dir = /var/www/django/ecerp_set/demo/ecerp
send_hup = true

And when I run circusctl , it shows that the app ecerp did not run: 当我运行circusctl ,它表明应用程序ecerp没有运行:

root@vps3:~# circusctl
circusctl 0.11.1
ecerp: stopped
(circusctl)

Please help me point out where is wrong? 请帮我指出哪里错了? I've spent half a day on it, thanks very much! 我花了半天时间,非常感谢!

I tried using circus, then runit, somehow it just wan not figuring. 我试过使用马戏团,然后是runit,但不知何故。 That is when I turned to using Systemd option 那就是当我转向使用Systemd选项时

I tried using the systemd option and it worked, I have published the answer here.. 我试着使用systemd选项,它起作用了,我在这里发布了答案。

https://askubuntu.com/questions/930589/running-upstart-script-on-17-04/1010398#1010398 https://askubuntu.com/questions/930589/running-upstart-script-on-17-04/1010398#1010398

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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