欢迎光临
我们一直在努力

centos 支持 curl http2

# rpm -ivh http://mirror.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-2-1.rhel7.noarch.rpm
Retrieving http://mirror.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-2-1.rhel7.noarch.rpm
warning: /var/tmp/rpm-tmp.J80Dfs: Header V4 DSA/SHA1 Signature, key ID b56a8bac: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:city-fan.org-release-2-1.rhel7   ################################# [100%]

开启 city-fan.org 仓库

# sed -i 's/enabled=0/enabled=1/g' /etc/yum.repos.d/city-fan.org.repo

安装 curl

# yum install curl -y

Dependencies Resolved

=======================================================================================================================================================================
 Package                                Arch                              Version                                        Repository                               Size
=======================================================================================================================================================================
Updating:
 curl                                   x86_64                            7.75.0-2.0.cf.rhel7                            city-fan.org                            567 k
Installing for dependencies:
 libicu                                 x86_64                            50.2-4.el7_7                                   base                                    6.9 M
 libmetalink                            x86_64                            0.1.3-14.rhel7                                 city-fan.org                             27 k
 libnghttp2                             x86_64                            1.33.0-1.1.el7                                 epel                                     68 k
 libpsl                                 x86_64                            0.7.0-1.el7                                    city-fan.org                             45 k
Updating for dependencies:
 libcurl                                x86_64                            7.75.0-2.0.cf.rhel7                            city-fan.org                            506 k
 libssh2                                x86_64                            1.9.0-7.0.cf.rhel7                             city-fan.org                            129 k

Transaction Summary
=======================================================================================================================================================================

测试

# curl https://www.ithothub.com/ -I
HTTP/2 200
server: openresty
date: Sun, 21 Mar 2021 02:55:58 GMT
content-type: text/html; charset=UTF-8
link: <https://www.ithothub.com/wp-json/>; rel="https://api.w.org/"
access-control-allow-origin: *
access-control-allow-origin: *

 

赞(3) 打赏
转载请注明来源:IT技术资讯 » centos 支持 curl http2

评论 抢沙发

评论前必须登录!

 

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏