password
URL
type
status
date
slug
summary
tags
category
icon
周起始
标签
是否汉化
centos 解决 github clone和下载相关包网络超时,慢的问题
- 在
CentOS 服务器
上通过git clone
下载项目,速度很慢或直接超时
git clone
特别慢,是因为github.global.ssl.fastly.net
域名被限制了,只要找到这个域名对应的IP
地址,然后在hosts
文件中加上ip–>域名
的映射,刷新DNS
缓存便可。
nslookup
命令获取github
IP
地址- 如果没有安装,则需要安装一下
2. 获取
IP
地址
- 修改
hosts
文件
- 编辑
hosts
- 填入内容,保存

nscd
命令更新DNS
缓存
1、如果没有安装,则需要安装一下
2、更新
DNS
缓存- 然后再次执行
git clone
,则会进入下载。
离开乏味的皮囊,自由的灵魂在路上
- Name: Alan Hsu
- Tag: 随感、技术、经验、旅行、推荐、生活、音乐、电影 etc.
- Email:xulanzhong521gmail.com
- Twitter:@AlanHsu521
- Telegram:@AlanHsu521
- WeChat: Alan_Hsu_521
- Github: https://github.com/xsoway/
- Blog: https://xmylog.com


- Author:Alan_Hsu
- URL:https://xmylog.com/article/articles_centos_github-timeout
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!
Relate Posts