php5.6下安装swoole扩展

0 0 366

这里安装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

安装成功

留言

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>