默认情况下,libcurl不支持https, 如果使用https链接,就会出现" Protocol https not supported or disabled in libcurl" 的错误提示。查看curl是否支持https可以使用命令:

curl -V。

解压:# tar -zxvf curl-7.49.0.tar.gz

# cd curl-7.49.0

# ./configure 这里注意的是最后会显示一段信息提示是否支持https:

curl不能支持https问题

Protocols:没有https的支持。

这里的SSL support提示的是不支持的,因为https协议是加密安全的基于http的协议,需要使用openssl的静态库,所以需要支持https就必须下载openssl,并安装。yum install openssl-devel包。

重新编译安装:

curl不能支持https问题

提示支持https ,接着make,make install 即可!!

# curl -V

curl不能支持https问题

相关文章:

  • 2021-06-22
  • 2021-06-17
  • 2021-07-16
  • 2021-09-03
  • 2022-12-23
  • 2021-11-20
  • 2021-09-14
  • 2022-12-23
猜你喜欢
  • 2021-05-22
  • 2021-12-16
  • 2021-11-02
  • 2018-04-24
  • 2021-05-30
相关资源
相似解决方案