swoole:
官网: https://www.swoole.com
github : https://github.com/swoole/swoole-src
gitee: https://gitee.com/swoole/swoole
yum install unzip
yum install pcre-devel autoconf make
下载源码包并解压:
cd /usr/local/src
wget https://gitee.com/swoole/swoole/repository/archive/v2.2.0.zip
unzip v2.2.0.zip
编译安装:
cd swoole
phpize
./configure
make && make install
在/usr/local/php/etc/php-cli.ini 下添加
extension=swoole.so
测试:
php -m|grep swoole
如下图所示就表示成功安装: