php7.2安装swoole扩展

发布时间 2023-11-09 14:22:42作者: zhang_you_wu

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