今天早上,我必須使用監督員3.3與Ubuntu 16.04的服務啓動失敗
pip install --upgrade supervisor //from 3.2 to 3.3
但在那之後,服務狀態通知它失敗開始升級我的上司。
supervisor.service - Supervisor process control system for UNIX
Loaded: loaded (/lib/systemd/system/supervisor.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2016-05-24 12:19:48 CST; 25s ago
Docs: http://supervisord.org
Process: 27369 ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown (code=exited, status=203/EXEC)
Process: 27366 ExecStart=/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf (code=exited, status=203/EXEC)
Main PID: 27366 (code=exited, status=203/EXEC)
May 24 12:19:48 709101111291e5cZ systemd[1]: supervisor.service: Unit entered failed state.
May 24 12:19:48 709101111291e5cZ systemd[1]: supervisor.service: Failed with result 'exit-code'.
這是我的工作人員配置:
[program:worker]
process_name=%(program_name)s_%(process_num)02d
command=php artisan queue:listen --timeout=360 --queue=high,low --sleep=3 --tries=3
autostart=true
autorestart=true
exitcodes=0,2
user=www
numprocs=2
redirect_stderr=true
stdout_logfile=/www/worker/storage/logs/worker.log
會請有人可以幫助?
「pip install --upgrade supervisor」不會將其安裝爲服務。你使用「sudo apt-get install supervisor」嗎?如果是這樣,那麼它被安裝在/ usr/bin ... – vgoklani
@vgoklani其實,我有兩種方式來安裝它,因爲官方的Ubuntu軟件包只有3.2,然後我通過pip install --upgrade升級它。 –