https://github.com/chenxuhua/issues-blog/issues/3
打开在Hosts文件,在文件尾部插入新行,添加以下代码并保存
# GitHub Start 192.30.253.112 github.com 192.30.253.118 gist.github.com 151.101.112.133 assets-cdn.github.com 151.101.184.133 raw.githubusercontent.com 151.101.112.133 gist.githubusercontent.com 151.101.184.133 cloud.githubusercontent.com 151.101.112.133 camo.githubusercontent.com 151.101.112.133 avatars0.githubusercontent.com 151.101.112.133 avatars1.githubusercontent.com 151.101.184.133 avatars2.githubusercontent.com 151.101.12.133 avatars3.githubusercontent.com 151.101.12.133 avatars4.githubusercontent.com 151.101.184.133 avatars5.githubusercontent.com 151.101.184.133 avatars6.githubusercontent.com 151.101.184.133 avatars7.githubusercontent.com 151.101.12.133 avatars8.githubusercontent.com # GitHub End
mac ox下修改hosts文件:
进入访达,commnad+shift+g ,前往文件夹输入 “/private/etc”,找到hosts文件
选中hosts,点击文件夹上方齿轮标记,选择“显示简介”,在出现的界面下点击右下角的锁按钮,输入管理员密码,将“共享与权限”中“everyone”修改为“读与写”,然后在终端模式下用vim修改hosts文件,保存后退出,将hosts文件属性修改为只读。