XY BLOG

XY的BLOG

PHP 队列后台消费进程 laravel tp supervisord

Published on in Posts
Updated on
Short link: https://b.xyzt07.cn/s/1e
Share this post
A ⇄ 文
⚠️ This entry is already over one year old. It may no longer be up to date. Opinions may have changed.
php artisan queue:work

[program:admin_queue]
command=php artisan queue:work
directory=/www/wwwroot/wxkx/
autorestart=true
startsecs=3
startretries=3
stdout_logfile=/www/server/panel/plugin/supervisor/log/admin_queue.out.log
stderr_logfile=/www/server/panel/plugin/supervisor/log/admin_queue.err.log
stdout_logfile_maxbytes=2MB
stderr_logfile_maxbytes=2MB
user=root
priority=999
numprocs=1
process_name=%(program_name)s_%(process_num)02d

TP5

[program:queue]
user=root
command=php /www/wwwroot/tpqueue/think queue:work --queue helloJobQueue,taskOneQueue,taskTwoQueue --daemon