使用Supervisor来管理你的Laravel队列(2)

在supervisor的include中,我们可以创建一个SendMail项目

[program:waaQueue] command = php artisan queue:work directory = /path/to/app process_name = %(program_name)s_%(process_num)s numprocs = 6 autostart = true autorestart = true stdout_logfile = /path/to/app/storage/logs/supervisor_waaQueue.log stdout_logfile_maxbytes = 10MB stderr_logfile = /path/to/app/storage/logs/supervisor_wqqQueue.log stderr_logfile_maxbytes = 10MB 启动

首先启动supervisord,执行supervisord即可,它会在默认目录下寻找配置文件

运行supervisorctl help来查看可使用命令

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/253507b2ebfe29017ab481ac36c859a4.html