通过wget下载文件,报错

[root@Redmine-186 opt]# wget https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.6.tar.gz
--2018-01-05 13:54:12--  https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.6.tar.gz
Resolving cache.ruby-lang.org... 151.101.229.178, 2a04:4e42:36::434
Connecting to cache.ruby-lang.org|151.101.229.178|:443... connected.
ERROR: certificate common name ?..ssl.fastly.net?.doesn?. match requested host name ?.ache.ruby-lang.org?.
To connect to cache.ruby-lang.org insecurely, use ?.-no-check-certificate?.

无法建立 SSL 连接。

修改命令,取消ssl验证:

wget --no-check-certificate https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.6.tar.gz

相关文章:

  • 2021-06-09
  • 2021-12-03
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
  • 2021-05-23
猜你喜欢
  • 2022-01-15
  • 2022-12-23
  • 2021-09-26
  • 2021-08-13
  • 2022-12-23
  • 2021-05-16
相关资源
相似解决方案