GitHub 进不去解决办法

查询网址的IP

打开IP查询网站: https://www.ipaddress.com/

分别输入并查询 github.com  github.global.ssl.fastly.net 网址的 IP

输入并查询

修改hosts文件

在末尾添加并保存

Windows

C:\Windows\System32\drivers\etc\hosts

Linux

\etc\hosts

# GitHub Start
140.82.114.4 github.com
199.232.69.194 github.global.ssl.fastly.net

# GitHub End

刷新DNS

Windows

打开CMD命令提示符, 输入以下指令,刷新 DNS 解析缓存

ipconfig /flushdns

Linux

sudo rcnscd restart

猜你喜欢

转载自blog.csdn.net/weixin_42170236/article/details/107181167