git clone加速命令 nslookup github.com | nslookup github.global.ssl.fastly.Net
git clone加速
因为在国内github下载的速度只有10-25k/s,源码大小较大的文件要等非常长的时间,若想缩短下载时间需要用到git clone加速
CentOS安装指令
sudo yum -y install bind-utils
Ubuntu安装指令
sudo apt-get bind9
查询github的DNS记录
nslookup github.com
nslookup github.global.ssl.fastly.Net
复制以上两条命令中Non-authoritative answer
中的IP地址
再新开一个命令行终端,修改hosts
文件,添加查到的IP地址
及域名
X.X.X.X github.com
X.X.X.X global-ssl.fastly.net
sudo vim /etc/hosts
重启网络
sudo /etc/init.d/networking restart
重新执行git clone指令即可
欢迎小伙伴的讨论,若有问题请在评论区评论或私信,谢谢你。
git clone加速命令 nslookup github.com | nslookup github.global.ssl.fastly.Net相关推荐
- git clone加速(github加速)
1,修改hosts linux 修改host文件: /etc/hosts 151.101.72.249 github.global.ssl.fastly.net 192.30.253.112 gith ...
- git clone 出现错误 Could not resolve host: github.com
git clone 出现错误 Could not resolve host: github.com 一.错误原因 二.解决方法 1.解析出域名对应的IP地址 2.把域名和IP地址添加到主机的hosts ...
- git clone 出现fatal: unable to access https://github 解决方法
git clone 出现fatal: unable to access https://github 类错误解决方法 git clone 遇到问题: ① fatal: unable to access ...
- git clone 时出现 Failed to connect to github.com port 443: Timed out
问题如下图所示 一.问题描述 fatal: unable to access 'https://github.com/ecsoya/fabric-demo.git/': Failed to conne ...
- git clone报错 unable to access “https://github.com/xxxxx“
在克隆github其他人代码时,发现报错:fatal: unable to access 'https://github.com/xxxxx/': Failed to connect to githu ...
- github.global.ssl.fastly.net hosts
为什么80%的码农都做不了架构师?>>> 103.245.222.184 github.global.ssl.fastly.net 转载于:https://my.oschina ...
- git clone 出现fatal: unable to access ‘https://github 类错误解决方法
git clone 遇到问题:fatal: unable to access 'https://github.comxxxxxxxxxxx': Failed to connect to xxxxxxx ...
- git clone加速(实测推荐)
Github的重要性就不需要赘述了,但是github的服务器在国外,国内访问速度是非常慢的,下边介绍几种git clone时加速的方法. 第一种:在git仓库前添加gitclone.com的前缀(推荐 ...
- git clone 出现fatal: unable to access ‘https://github.com/xxx: Failed to connect to github.com
问题描述: 使用git clone命令时,出现如下错误: fatal: unable to access 'https://github.com/xxx': Failed to connect to ...
最新文章
- 计算机模拟组装测试题一,江苏专转本计算机模拟自测试题(一)
- 《C#精彩实例教程》小组阅读06 -- C#运算符与表达式
- [20150601]模拟ora-00600[2608]错误.txt
- [译]WPF 应用程序和MVVM设计模式 ——Josh Smith
- 三轴加速度传感器和六轴惯性传感器_美泰产品推介MSV3100A三轴加速度传感器
- json 文件打读取
- opacity透明度兼容性 css/js/query三种
- BAT大揭秘:在腾讯、百度、阿里上班,差别竟然这么大?
- RabbitMq 406错误
- 微信充错服务器,微信话费充错了怎么追回来(只需一招即可追回)
- jsp网站用什么虚拟主机
- TLF80511TC 是一款线性低压差稳压器—科时进商城
- View基础知识---MotionEvent和TouchSlop
- 中国90%的SaaS都亏钱,为何这家公司偏偏盈利千万
- html页面中插入flv格式视频
- Maven私库使用常见问题:本地安装三方Jar文件
- 使用ArcGIS API和Three.js在三维场景中实现动态立体墙效果
- lcd屏幕有mipi接口吗_液晶屏mipi接口能用的最大分辨率是多少
- DYA8面向对象中--包与修饰符
- 什么是RCCP,什么是CRP?
热门文章
- $.ajax({});的各个参数的理解
- Spring task corn表达式
- USES_CONVERSION宏定义
- 微信小程序Vant Weapp里面Calendar 日历组件不显示的问题
- Java 实现抓包程序
- 对PostgreSQL源代码中的is_pushed_down的理解
- 浏览器在sandbox中没声音
- ng 无法加载文件 C:\Users\hl\AppData\Roaming\npm\ng.ps1 解决方法
- 一位实习生对软件测试的看法
- 构建整车七自由度模型