运维-Supervisor 安装配置

安装

1
2
3
yum install supervisor
yum status supervisor
yum enable supervisor

参数

1
#

配置

新增 /etc/supervisord.d/laravel-worker.ini

1
2
3
4
5
6
7
8
9
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /path/artisan queue:work database --queue=all_comment
autostart=true
autorestart=true
user=forge
numprocs=8
redirect_stderr=true
stdout_logfile=/var/www/zhenyouhaofang/storage/logs/worker.log

您的支持将鼓励我继续创作