php5.6下安装swoole扩展
这里安装swoole-1.10.5版本
php版本为5.6.9
linux系统为centos7.5
wget https://pecl.php.net/get/swoole-1.10.5.tgz
tar zxvf swoole-1.10.5.tgz
cd swoole-1.10.5
编译
/usr/local/php56/bin/phpize
编译
./configure –with-php-config=/usr/local/php56/bin/php-config
安装
make && make install
成功显示:
Installing shared extensions: /usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226/
Installing header files: /usr/local/php56/include/php/
修改php.ini 加载swoole扩展
[extension]
extension=’/usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226/swoole.so’
重启服务器
service nginx restart
service php-fpm restart
php -m | grep swoole
安装成功
