Sáng nay, tôi phải nâng cấp giám sát của tôi bằng cách sử dụngSupervisor 3.3 với Ubuntu 16,04 dịch vụ bắt đầu thất bại
pip install --upgrade supervisor //from 3.2 to 3.3
Nhưng sau đó, tình trạng dịch vụ bắt đầu thông báo nó thất bại.
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'.
Đây là cấu hình lao động của tôi:
[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
sẽ hài lòng ai đó có thể giúp đỡ?
"pip install - supervatoror" không cài đặt nó làm dịch vụ. Bạn đã sử dụng "sudo apt-get install supervisor" chưa? Nếu vậy, sau đó nó được cài đặt trong/usr/bin ... – vgoklani
@vgoklani Trên thực tế, tôi thực hiện hai cách để cài đặt nó, vì gói chính thức của Ubuntu chỉ 3.2, và sau đó tôi nâng cấp nó bằng pip install --upgrade. –