https://www.jianshu.com/p/f8de5b9ddfc1
https://www.jianshu.com/p/3371666b7880

环境需求 PHP 7.1+ 、laravel 5.7+

# 安装
composer require laravel/horizon

# 发布前端资源
php artisan vendor:publish --provider="Laravel\Horizon\HorizonServiceProvider"

# 生成config/horizon.php
# balance 配置项
simple、auto 和 false
simple 是默认策略

# 访问
http://192.168.91.130:85/horizon/

# 运行horizon
php artisan horizon

# 后台运行horizon
php artisan horizon &

# 暂停或继续处理队列任务
php artisan horizon:pause
php artisan horizon:continue

#终止 Horizon 主进程
php artisan horizon:terminate

 

相关文章:

  • 2022-02-08
  • 2021-07-01
  • 2022-12-23
  • 2021-11-19
  • 2021-09-22
  • 2021-12-26
  • 2021-12-31
  • 2021-05-20
猜你喜欢
  • 2021-09-20
  • 2021-06-05
  • 2021-10-25
  • 2021-11-27
  • 2021-08-09
  • 2022-12-23
相关资源
相似解决方案