[英]Cannot start gunicorn under Circus
當我嘗試直接運行Gunicorn時,它起作用了:
gunicorn -b 127.0.0.1:8081 ecerp.wsgi --chdir /var/www/django/ecerp_set/demo/ecerp/
但是我在使用馬戲團時一直嘗試失敗。
[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
當我運行circusctl
,它表明應用程序ecerp
沒有運行:
root@vps3:~# circusctl
circusctl 0.11.1
ecerp: stopped
(circusctl)
請幫我指出哪里錯了? 我花了半天時間,非常感謝!
我試過使用馬戲團,然后是runit,但不知何故。 那就是當我轉向使用Systemd選項時
我試着使用systemd選項,它起作用了,我在這里發布了答案。
https://askubuntu.com/questions/930589/running-upstart-script-on-17-04/1010398#1010398
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.