问题
一般我们利用curl 或者wget 获取raw.githubusercontent.com的内容时,常常会遇到443 拒绝访问的尴尬
此外在git clone等运作时会遇到没有速度的问题
解决方案:修改hosts文件
sudo nano /etc/hosts
将以下内容粘贴到文件末尾
#199.232.28.133 raw.githubusercontent.com
#199.232.96.133 raw.githubusercontent.com
185.199.108.133 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
199.232.69.194 github.global.ssl.fastly.net
140.82.113.4 github.com
保存[ctrl+o],退出[ctrl+x]
刷新网络
nohup /etc/init.d/networking restart
解决方案二:通过浏览器增强插件和脚本
- 访问油猴官方网站 https://www.tampermonkey.net/
- 根据你所使用的浏览器安装对应的插件,我使用的是谷歌浏览器,安装对应的版本
- 安装完毕后,重启浏览器,点击浏览器右上角油猴插件图标,点击获取新脚本

选择 GreasyFork, 点击进入后,搜索 github.com,下载脚本并安装,刷新浏览器或者重启浏览器。


随便访问一个仓库
可以看到 加速 字样,进入到release页面,更有多个下载点可以选


解决方案三: 安装上图中的软件。
RT