排障集锦:九九八十一难之第二十一难!-----raw.githubusercontent.com (raw.githubusercontent.com) 无法建立 SSL 连接。

2020-10-28 14:34:39 浏览数 (1)

记一次沙雕问题 辗转反侧好一阵子才解决

问题描述

无法连接github官网 下载不了ingress的yaml文件 一直在显示没有证书 显示如下

解决方法

解决方法一 在Wget后面添加"–no-check-certificate"如下所示: wget --no-check-certificate 你要下载的SSL网址

解决方法二

代码语言:javascript复制
[root@localhost java]# vim /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
# GitHub Start
52.74.223.119 github.com
192.30.253.119 gist.github.com
54.169.195.247 api.github.com
185.199.111.153 assets-cdn.github.com
151.101.76.133 raw.githubusercontent.com
151.101.108.133 user-images.githubusercontent.com
151.101.76.133 gist.githubusercontent.com
151.101.76.133 cloud.githubusercontent.com
151.101.76.133 camo.githubusercontent.com
151.101.76.133 avatars0.githubusercontent.com
151.101.76.133 avatars1.githubusercontent.com
151.101.76.133 avatars2.githubusercontent.com
151.101.76.133 avatars3.githubusercontent.com
151.101.76.133 avatars4.githubusercontent.com
151.101.76.133 avatars5.githubusercontent.com
151.101.76.133 avatars6.githubusercontent.com
151.101.76.133 avatars7.githubusercontent.com
151.101.76.133 avatars8.githubusercontent.com
# GitHub End
~                                             

0 人点赞