- Swoole文档地址 https://www.swoole.com/
- pcel安装方式
pecl install swoole
开php.ini 开启 extension=swoole.so
查看swoole是否被正确的安装 php -m | grep swoole
- 编译安装方式
下载:https://gitee.com/swoole/swoole/tree/v2.2.0
- 通过phpize生成 编译文件
./configure --with-php-config=//usr/local/php/bin/php-config
make test
make install
- 查找php.ini文件 find / -name php.ini
service php-fpm restart
service nginx restart
查看 swoole 扩展: php -m