Centos7 安装 swoole
1. 下载 swoole 源码
- https://github.com/swoole/swoole-src/releases
- https://pecl.php.net/package/swoole
- https://gitee.com/swoole/swoole/tags
2. 解压
- tar zxvf ./tmp/swoole.tar.gz
3. 使用 phpize
来生成编译检测脚本
phpize
4. 安装
-
./configure --enable-openssl --enable-http2 --with-php-config=php-config的路径 && make && sudo make install.
5. 检查是否安装成功
- php -m
- php --ri swool