ubuntu18下解决githup上不去的问题

ubuntu下配置host的方法:打开终端输入命令:sudo vim /etc/hosts

添加以下内容:

192.30.253.113 github.com
192.30.253.113 github.com
192.30.253.118 gist.github.com
192.30.253.119 gist.github.com

修改 hosts 后,使 hosts 文件修改生效:
sudo /etc/init.d/dns-clean start
sudo /etc/init.d/networking restart

posted @ 2020-02-01 17:22  AnswerThe  阅读(463)  评论(0编辑  收藏  举报