首先,先为你的服务器获取最新匹配的源:http://mirror.city-fan.org/ftp/contrib/yum-repo/
# 安装新版libcurl的yum源
rpm -ivh http://mirror.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-13.rhel6.noarch.rpm
# 升级libcurl到7.47
yum upgrade libcurl
# 升级完成后可以卸载此yum源
rpm -e city-fan.org-release
注意:如果升级时提示Requires: libnghttp2.so.14()(64bit)错误时,可以使用安装epel源来解决,安装方法如下:
yum install epel-release -y
# curl 测试http2
curl --http2 -v https://http2bin.org/get
转自:http://blog.csdn.net/s1070/article/details/52946852