php swoole扩展安装
一波三折。
- 首先下载swoole安装包(由于我这里php是7,所以说应该去官网下载最新的swoole包,否则会发生意想不到的错误)
wget https://github.com/swoole/swoole-src/archive/v1.9.16.tar.gz
-
tar -zxvf v1.9.16.tar.gz cd swoole-src-1.9.16/ /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make && make install
-
在php.ini加入swoole扩展配置
[swoole] extension = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/swoole.so"