操作步骤
1.先安装composer未安装可在本站搜索
2.查询是否安装Swoole扩展,已安装跳过步骤3
php --ri swoole
3.PHP安装Swoole扩展。具体参考php.net官网安装说明
git clone https://github.com/swoole/swoole-src.git
cd swoole-src
phpize
./configure
make && make install
4.配置php.ini扩展
如:extension=your/full/path/swoole.so
不记得位置可以通过命令查询
php --ini
5.第3步骤成功会返回路径安装文件路径,复制对应路径/swoole.so
6.Hyperf需要额外增加ini配置
swoole.use_shortname = Off
7.安装Hyperf
composer create-project hyperf/hyperf-skeleton