平时有好多的好多优秀的项目都需要访问github页面。有时候是加载特别的慢,有时候加载不出css样式,有时候直接就挂掉了,属实影响开发的心情
其实很简单只需要配置一下host文件就可以流畅访问
- host文件路径
C:\Windows\System32\drivers\etc
# 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
关于host文件修改
方法一:将文件复制到桌面,将以上地址添加到host文件里,然后拖回去就OK
方法二:鼠标右键选择notepad++(notepad-plus.en.softonic.com/) 打开,直接Ctrl + S保存就行
命令行刷新一下试试:ipconfig /flushdns