centos 安装swoole

# 安装centos-release-scl


yum install centos-release-scl


# 安装devtoolset-7-gcc*


yum install devtoolset-7-gcc*
 scl enable devtoolset-7 bash
# 检查当前gcc版本
gcc -v

方案一

sudo pecl install swoole
方案二

wget  https://github.com/swoole/swoole-src/archive/v4.4.16.tar.gz
#如果没有 wget 
yum install -y wget
tar -zxvf v4.4.16.tar.gz
cd  swoole-src-4.4.16
phpize
./configure
make
make install
# 在php.ini 中 加入
extension=swoole.so
#php -m 查看扩展

猜你喜欢

转载自blog.csdn.net/zhang804633234/article/details/121670982