1.在网站 https://www.ipaddress.com/ 上搜索
github.global.ssl.fastly.net
github.com
这两个域名所对应的ip填入/etc/hosts中
2.添加hosts
[root grpc]#cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
199.232.69.194 github.global.ssl.fastly.net
140.82.114.3 github.com
3.重启网络
service network restart