执行下面这俩命令,找到对应的IP,增加host就能解决
nslookup github.global.ssl.fastly.Net nslookup github.com
root@tao-PC:/var/www/html/go-project/test# nslookup github.global.ssl.fastly.Net Server: 124.207.160.106 Address: 124.207.160.106#53
Non-authoritative answer: Name: github.global.ssl.fastly.Net Address: 66.220.146.94
root@tao-PC:/var/www/html/go-project/test# nslookup github.com Server: 124.207.160.106 Address: 124.207.160.106#53
Non-authoritative answer: Name: github.com Address: 13.229.188.59
找到下面的IP Non-authoritative answer:
修改host为下面下面的ip 13.229.188.59 github.com 66.220.146.94 github.global.ssl.fastly.net
重启刷新DNS /etc/init.d/networking restart
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有