当前位置:编程学习 > php >>

php7.4安装swoole 解决HOOK_NATIVE_CURL错误

swoole运行报错cannot enable both hooks HOOK_NATIVE_CURL and HOOK_CURL

Swoole\Runtime::enableCoroutine(): cannot enable both hooks HOOK_NATIVE_CURL and HOOK_CURL at same time

下载后4.8.12安装包


tar -zxvf swoole-4.8.12.tgz
cd swoole-4.8.12/
/www/server/php/74/bin/phpize
./configure --with-php-config=/www/server/php/74/bin/php-config --enable-openssl --enable-sockets
make && make install
echo -e "\n[swoole]\nextension = swoole.so\nswoole.use_shortname = off\n" >>/www/server/php/74/etc/php.ini


curl-native  这个扩展导致项目无法启动

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,