安装
1 | yum install supervisor |
参数
1 | # |
配置
新增 /etc/supervisord.d/laravel-worker.ini1
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