Swoole安装


wget -O swoole.zip https://github.com/swoole/swoole-src/archive/v1.9.11.zip

unzip swoole.zip

cd swoole

phpize

./configure

make && make install

vi /usr/local/php/lib/php.ini   (php.ini的目录)

extension="/data/php56/lib/php/extensions/no-debug-zts-20131226/swoole.so"

查看扩展是否安装php -m

重启阿帕奇与php

 

1. wget -O swoole.zip https://github.com/swoole/swoole-src/archive/v1.9.11.zip
2. unzip swoole.zip
3. cd swoole
4. phpize
5. ./configure --with-php-config=/www/server/php/bin/php-config
6. make && make install
7. 修改php.ini文件
vim /www/server/php/etc/php.ini
8.添加swoole.so扩展配置,保存退出
extension=swoole.so
9.重启Apache或php-fpm
service httpd restart
service php-fpm restart

 

声明:祁志飞||小祁的博客|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - Swoole安装


QQ:137867590