Laravel 中队列的应用 「redis」

Laravel Horizon

Horizon 队列管理工具 (工欲善其事必先利其器)
这里直接安装官方走即可: Laravel Horizon

安装失败请看文末的FAQ

Laravel Queue

待续…

FAQ

  • laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system ?

composer.json中添加以下代码

1
2
3
4
5
6
"config": {
"platform": {
"ext-pcntl": "7.2",
"ext-posix": "7.2"
}
}
  • Call to undefined function Laravel\Horizon\Console\pcntl_async_signals()
1
composer require ext-pcntl ext-posix

这个模块没有非Unix平台可用的函数(即非Unix类系统不支持此模块)。(Windows 没戏)
https://php.net/manual/zh/pcntl.installation.php

然后执行 composer install --ignore-platform-reqs, 即可继续composer require laravel/horizon

参考

Powered by Hexo and Hexo-theme-hiker

Copyright © 2017 - 2023 Keep It Simple And Stupid All Rights Reserved.

访客数 : | 访问量 :