wget http://download.bt.cn/src/curl-7.70.0.tar.gz
tar -zxf curl-7.70.0.tar.gz
cd curl-7.70.0
mv /usr/local/curl /usr/local/curlold
apt install libnghttp2-dev
./configure --prefix=/usr/local/curl --with-nghttp2 --with-ssl --enable-ares --without-nss --with-ssl=/usr/local/openssl
make
make install
重启php验证
|
|