php7.2安装swoole扩展

swoole:

    官网: https://www.swoole.com

    github : https://github.com/swoole/swoole-src

    gitee: https://gitee.com/swoole/swoole

yum install unzip

yum install pcre-devel autoconf make

1.下载源码包并解压:

 

cd /download

wget https://gitee.com/swoole/swoole/repository/archive/v2.2.0.zip unzip v2.2.0.zip

 

2.将解压目录改为swoole后 编译安装:

复制代码
cd swoole

//1.执行phpize,注意实际phpize所在位置

/www/server/php/72/bin/phpize

//2.configure ,注意实际php-config所在位置

./configure --with-php-config=/www/server/php/72/bin/php-config

make && make install
复制代码

 3.在php.ini 最后加入,位置/www/server/php/72/etc/php.ini 

[swoole]

extension = /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/swoole.so

 

posted @   zhang_you_wu  阅读(583)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
点击右上角即可分享
微信分享提示