GitHub 轻松提速教程
通过修改hosts文件来提速,获取github的IP地址
访问:https://www.ipaddress.com/ 网址
依次获取以下三个网址的IP
github.com
github.global.ssl.fastly.net
codeload.github.com
这是我获取的IP
192.30.253.113 github.com
151.101.25.194 github.global.ssl.fastly.net
192.30.253.121 codeload.github.com
--------------------------------------------------------------------------------------
修改系统本地的hosts文件,添加内容
hosts文件路径:C:\Windows\System32\drivers\etc\hosts
192.30.253.113 github.com
151.101.25.194 github.global.ssl.fastly.net
192.30.253.121 codeload.github.com
添加上面查询到的IP到hosts文件中
刷新DNS
ipconfig /flushdns
linux系统
打开hosts文件并修改
sudo vim /etc/hosts
2.重启网络服务
sudo /etc/init.d/networking restart
转载于:https://www.cnblogs.com/LyShark/p/10574755.html
总结
以上是生活随笔为你收集整理的GitHub 轻松提速教程的全部内容,希望文章能够帮你解决所遇到的问题。