步骤
1 打开dns查询网站:dns查询网站
2 找到 TTL值最小,把对应的IP记下来
3 打开文件
sudo vim /etc/hosts
4 在最后添加刚才的ip 域名,如
20.205.243.166 github.com
5 保存退出后刷新
sudo /etc/init.d/networking restart
1 打开dns查询网站:dns查询网站
2 找到 TTL值最小,把对应的IP记下来
3 打开文件
sudo vim /etc/hosts
4 在最后添加刚才的ip 域名,如
20.205.243.166 github.com
5 保存退出后刷新
sudo /etc/init.d/networking restart
401
1490

被折叠的 条评论
为什么被折叠?