wget http://curl.haxx.se/download/curl-7.63.0.tar.gz
tar -zxf curl-7.17.1.tar.gz
./configure --prefix=/usr/local/curl (curl安装位置)
make & make install
配置php扩展 (本人php7)
进入php源码curl扩展目录
cd /usr/local/src/php-7.0.32/ext/curl
执行
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-curl= (curl安装位置)
make & make install