安装horizon可能会出现的问题
以目前我知道的, horizon 应该不能在 windows 上运行.
因为 php 在 windows 上没有 php-pcntl.
我这边是centOS 7 和 centOS 8 .# php -i | grep pcntl
显示安装了,如果没安装dnf list *pcntl*
或 yum list *pcntl*
看看哪个源里有, 之后 dnf install php-pcntl
就行了.
我这边是第二个问题,composer require "laravel/horizon"
时, 出现
laravel/horizon[v5.7.0, …, 5.x-dev] require ext-posix * -> it is missing from your system. Install or enable PHP’s posix extension.
这个问题, 我查了一会
我用的是 PHP7.4
没有这个 posix
扩展.
从这里找到解决方法了
serverfault.com/questions/612459/c...
安装 php-process
就行
推荐文章: