https://www.bt.cn/bbs/thread-71373-1-1.html
下载文件:链接:https://pan.baidu.com/s/1-XXK4ewdxsw2yHhR56BjCw?pwd=jae4
提取码:jae4
从swoole官方来看,支持curl的版本是4.6,但是官方在后面做了版本修复,目前最新版本是4.6.7
1、将安装包上传到服务器/www/server/panel/install目录下
2、解压;并进入到 /www/server/panel/install/swoole-src-4.6.7目录下,
3、以php7.4版本为例安装这个扩展:
/www/server/php/74/bin/phpize
./configure --with-php-config=/www/server/php/74/bin/php-config --enable-openssl --with-openssl-dir=/usr/local/openssl --enable-sockets --enable-swoole-curl
make && make install
echo -e "\n[swoole]\nextension = swoole.so\n" >> /www/server/php/74/etc/php.ini
逐条执行上面的命令