第一步安装Supervisor

第二步设置配置文件 路劲etc/supervisor/conf.d

新建一个 conf文件  fenxi.conf

文件内容如下

[program:waaQueue]
command = php artisan queue:work --daemon
directory = /var/www/html/fenxi
process_name = %(program_name)s_%(process_num)s
numprocs = 1
autostart = true
autorestart = true
stdout_logfile = /var/www/html/fenxi/storage/logs/supervisor_waaQueue.log
stdout_logfile_maxbytes = 10MB
stderr_logfile =/var/www/html/fenxi/storage/logs/supervisor_wqqQueue.log
stderr_logfile_maxbytes = 10MB

 

重启 

supervisorctl restart

重新加载配置文件

supervisorctl reread

相关文章:

  • 2022-12-23
  • 2021-11-22
  • 2022-01-20
  • 2022-12-23
  • 2021-09-20
  • 2021-07-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2021-11-19
相关资源
相似解决方案