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 @ 2023-11-09 14:16  zhang_you_wu  阅读(767)  评论(0)    收藏  举报