一.测试环境
1.centos7.4 64位
2.php7.2.16
3.swoole4.3.4
二.编译安装
wget https://github.com/swoole/swoole-src/archive/v4.3.4.tar.gz
tar -zxvf
cd swoole-src
phpize
./configure
make && make install
三.修改PHP的配置文件,开放扩展
查找配置文件: php -i|grep Config
vim /usr/local/php/etc/php.ini
extension=swoole
查看是否已开放: php -m
```
*更加简便的安装
pecl install swoole
网友评论