swoole安装
2019-01-29 本文已影响0人
Yii2小虾
1、安装swoole
cd 到一个需要安装的目录
wget https://github.com/swoole/swoole-src/archive/v1.9.1-stable.tar.gz
tar zxvf v1.9.1-stable.tar.gz
cd swoole-src-1.9.1-stable
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config (/usr/local/php/bin/php-confi这个是自己PHP环境目录例如:./configure --with-php-config=/usr/local/anlewo/php71/bin/php-config)
make
make install
然后在php.ini配置扩展
[swoole]
extension = "/usr/local/anlewo/php71/lib/php/extensions/no-debug-non-zts-20160303/swoole.so"