博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
centos7.3下curl支持https协议
阅读量:4686 次
发布时间:2019-06-09

本文共 5283 字,大约阅读时间需要 17 分钟。

1 由于自己的curl是默认安装的,查看了下 不支持https协议

[root@izwz90bp6do7s3cr45cw6az ~]# curl --versioncurl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.21 Basic ECC zlib/1.2                                                                                        .7 libidn/1.28 libssh2/1.4.3Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s                                                                                         rtsp scp sftp smtp smtps telnet tftpFeatures: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-                                                                                        sockets

 

2  先安装openssl  yum下安装很简单

yum install openssl

 

3  然后重新安装一遍curl,我看了自己的版本较老,就yum一下,是更新

yum install curl

 

[root@izwz90bp6do7s3cr45cw6az ~]# yum install curlLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * remi-safe: mirrors.tuna.tsinghua.edu.cnResolving Dependencies--> Running transaction check---> Package curl.x86_64 0:7.29.0-35.el7.centos will be updated---> Package curl.x86_64 0:7.29.0-46.el7 will be an update--> Processing Dependency: libcurl = 7.29.0-46.el7 for package: curl-7.29.0-46.el7.x86_64--> Running transaction check---> Package libcurl.x86_64 0:7.29.0-35.el7.centos will be updated---> Package libcurl.x86_64 0:7.29.0-46.el7 will be an update--> Finished Dependency ResolutionDependencies Resolved======================================================================================================================================================================== Package                                Arch                                  Version                                         Repository                           Size========================================================================================================================================================================Updating: curl                                   x86_64                                7.29.0-46.el7                                   base                                268 kUpdating for dependencies: libcurl                                x86_64                                7.29.0-46.el7                                   base                                220 kTransaction Summary========================================================================================================================================================================Upgrade  1 Package (+1 Dependent package)Total download size: 488 kIs this ok [y/d/N]: yDownloading packages:Delta RPMs disabled because /usr/bin/applydeltarpm not installed.(1/2): libcurl-7.29.0-46.el7.x86_64.rpm                                                                                                          | 220 kB  00:00:00(2/2): curl-7.29.0-46.el7.x86_64.rpm                                                                                                             | 268 kB  00:00:00------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total                                                                                                                                   3.5 MB/s | 488 kB  00:00:00Running transaction checkRunning transaction testTransaction test succeededRunning transaction  Updating   : libcurl-7.29.0-46.el7.x86_64                                                                                                                         1/4  Updating   : curl-7.29.0-46.el7.x86_64                                                                                                                            2/4  Cleanup    : curl-7.29.0-35.el7.centos.x86_64                                                                                                                     3/4  Cleanup    : libcurl-7.29.0-35.el7.centos.x86_64                                                                                                                  4/4  Verifying  : curl-7.29.0-46.el7.x86_64                                                                                                                            1/4  Verifying  : libcurl-7.29.0-46.el7.x86_64                                                                                                                         2/4  Verifying  : curl-7.29.0-35.el7.centos.x86_64                                                                                                                     3/4  Verifying  : libcurl-7.29.0-35.el7.centos.x86_64                                                                                                                  4/4Updated:  curl.x86_64 0:7.29.0-46.el7Dependency Updated:  libcurl.x86_64 0:7.29.0-46.el7Complete!

 

4 然后查看协议代码

[root@izwz90bp6do7s3cr45cw6az ~]# curl --versioncurl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.34 zlib/1.2.7 libidn/1.28 libssh2/1.4.3Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftpFeatures: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets

已经有了https了

posted on
2018-06-22 10:49  阅读(
...) 评论(
...) 收藏

转载于:https://www.cnblogs.com/baker95935/p/9212339.html

你可能感兴趣的文章
实验吧之【天下武功唯快不破】
查看>>
2019-3-25多线程的同步与互斥(互斥锁、条件变量、读写锁、自旋锁、信号量)...
查看>>
win7-64 mysql的安装
查看>>
dcm4chee 修改默认(0002,0013) ImplementationVersionName
查看>>
maven3在eclipse3.4.2中创建java web项目
查看>>
发布时间 sql语句
查看>>
黑马程序员 ExecuteReader执行查询
查看>>
记一些从数学和程序设计中体会到的思想
查看>>
题目1462:两船载物问题
查看>>
POJ 2378 Tree Cutting(树形DP,水)
查看>>
第二冲刺阶段个人博客5
查看>>
UVA 116 Unidirectional TSP (白书dp)
查看>>
第三方测速工具
查看>>
MySQL 网络访问连接
查看>>
在aws ec2上使用root用户登录
查看>>
数据访问 投票习题
查看>>
CIO知识储备
查看>>
cnblog!i'm coming!
查看>>
使用点符号代替溢出的文本
查看>>
Axios 中文说明
查看>>