解决GitHub访问缓慢的问题
2020-06-07 05:58
134 查看
GitHub国内访问慢的解决办法:
原因:因为这几天访问GitHub太慢,所以就网上查了下GitHub访问缓慢的解决办法。目前我知道两种解决办法。 1.修改本地host文件的方式进行修改。 2.利用码云(gitee)进行仓库的转移,把github上的仓库转移到码云上,然后进行克隆就很快了。
1.修改本地host文件的办法。
1.1准备工作:
访问网址
http://github.com.ipaddress.com,分别获取github.com、github.global.ssl.fastly.net对应的IP。
如下图所示:
140.82.114.4 github.com 140.82.114.4 github.global.ssl.fastly.net
1.2 修改host文件
Windows的Hosts文件位于C:\Windows\System32\drivers\etc
1.将下面的信息追加到Hosts文件中,保存
140.82.114.4 github.com 140.82.114.4 github.global.ssl.fastly.net
2.更新DNS缓存
打开CMD运行如下命令
ipconfig /flushdns
2.对GitHub的仓库转移到码云上的方法:
1.先获取GitHub上的仓库链接:
2.登陆码云,进行仓库的创建
3.导入已有的仓库,然后进行创建。之后就可以进行克隆了。
3.解决GitHub中图片不显示的问题
在C:\Windows\System32\drivers\etc下的hosts文件中追加一下内容,GitHub上的图片就可以正常显示了。
GitHub Start 192.30.253.112 github.com 192.30.253.119 gist.github.com 151.101.184.133 assets-cdn.github.com 151.101.184.133 raw.githubusercontent.com 151.101.184.133 gist.githubusercontent.com 151.101.184.133 cloud.githubusercontent.com 151.101.184.133 camo.githubusercontent.com 151.101.184.133 avatars0.githubusercontent.com 151.101.184.133 avatars1.githubusercontent.com 151.101.184.133 avatars2.githubusercontent.com 151.101.184.133 avatars3.githubusercontent.com 151.101.184.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.184.133 avatars8.githubusercontent.com # GitHub End
相关文章推荐
- 国内访问Github官网以及二级域名时卡顿、缓慢的问题解决
- 转换CDN解决 stackoverflow, gitHub 网站访问缓慢的问题
- npm install 加速,解决github在国内访问缓慢的问题。
- 解决gist.github.com访问慢问题
- 转: 解决Github访问超慢问题
- 解决github访问及上传慢的问题
- 解决github访问及上传慢的问题
- Redmine局域网访问缓慢问题解决
- 【程序人生】解决gist.github.com 被墙无法访问的问题
- 解决Github访问超慢问题
- 解决github无法访问的问题
- 解决github访问问题
- 解决github访问及上传慢的问题
- 解决github访问及上传慢的问题
- 解决ubuntu下无法访问github或者访问慢的问题
- 解决因HTTPS 证书出错访问不了网页的问题(GitHub为例)
- 2014-4-2解决无法访问github和google的问题
- 解决Github访问超慢的问题
- 解决问题之无法访问GitHub
- 解决Github安装缓慢问题