下载安装包 https://pecl.php.net/package/swoole
解压安装包
解压swoole安装包
tar zxvf swoole-4.6.7.tgz -C /usr/local/src/
进入swoole 文件
cd /usr/local/src/swoole-4.6.7
#phpize 编译生成configure
/usr/local/php/bin/phpize
##编译swoole 并生成swoole.o文件 写入配置
./configure --with-php-config=/usr/local/php/bin/php-config
make
sudo make install
标签:swoole,安装包,编译,源码,usr,php,local,swoole4.6,centos8 From: https://www.cnblogs.com/yzl042349/p/17284058.html