通过站长工具找出DNS地址:进入站长工具网站的域名解析网址:http://tool.chinaz.com/dns/ ,在A类型的查询中输入github.com
,找出最快的IP地址
使用文本编辑器编辑 /etc/host文件
Windows路径:C:\Windows\System32\drivers\etc\hosts
修改hosts文件,添加以下内容:52.74.223.119 github.com
;
修改完成后请保存关闭
cmd命令执行ping github.com
;连接成功,就可以正常访问github