ubuntu下快速访问github官网的方法一
修改hosts文件
1 先打开dns查询网站:dns查询网站
2 输入城名 github.com , 点击<检测>
3 找到 TTL值最小,把对应的IP记下来
4 记录到hosts文件中
打开文件
sudo vim /etc/hosts
添加 格式是ip 域名
20.205.243.166 github.com
5 刷新DNS
sudo /etc/init.d/networking restart
[ ok ] Restarting networking (via systemctl): networking.service.
至此可以重新访问github