Github无法登录或响应时间长解决方法

Github无法登录或响应时间过长解决方法

首先,github目前没有被墙,不必担心

造成响应时间过长的原因是DNS寻址慢,解决方法:修改host文件
windows系统打开目录
C:\Windows\System32\drivers\etc 使用管理员权限编辑host文件,在文件中加入以下代码:

# GitHub Start
192.30.253.112 github.com
192.30.253.119 gist.github.com
151.101.100.133 assets-cdn.github.com
151.101.100.133 raw.githubusercontent.com
151.101.100.133 gist.githubusercontent.com
151.101.100.133 cloud.githubusercontent.com
151.101.100.133 camo.githubusercontent.com
151.101.100.133 avatars0.githubusercontent.com
151.101.100.133 avatars1.githubusercontent.com
151.101.100.133 avatars2.githubusercontent.com
151.101.100.133 avatars3.githubusercontent.com
151.101.100.133 avatars4.githubusercontent.com
151.101.100.133 avatars5.githubusercontent.com
151.101.100.133 avatars6.githubusercontent.com
151.101.100.133 avatars7.githubusercontent.com
151.101.100.133 avatars8.githubusercontent.com
# Github End

保存后,打开命令行,运行ipconfig命令刷新一下。

那么,以上输入的ip地址是如何获得呢?
ipaddress.com
点击这个链接,查询需要的网站的IP

发布了75 篇原创文章 · 获赞 61 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/swy_swy_swy/article/details/104407814