//依赖安装
yum install openssl openssl-devel
wget https://curl.haxx.se/download/curl-7.63.0.tar.gz
tar -zvxf curl-7.63.0.tar.gz
cd curl-7.63.0
./configure --prefix=/usr/local/curl --without-nss --with-ssl && make && make install
//备份
sudo mv /usr/bin/curl /usr/bin/curl.bak
//创建软连接
sudo ln -s /usr/local/curl/bin/curl /usr/bin/curl
//编译curl扩展
/usr/local/php7/bin/phpize
./configure --with-curl=/usr/local/curl --with-php-config=/usr/local/php7/bin/php-config
make && make install