我用的是3A服务器搭建的环境,也推荐给你们官网链接:www.cnaaa.com1.dev-sidecar-强烈推荐开发者sidecar,以服务的名字命名service-mesh-sidecar,开发者通过本地代理将https请求代理到国内部分加速通道的辅助sidecar工具1下载安装包release下载GiteeReleaseGithubReleaseWindows:请选择DevSidecar-x.x.x.exeMac:请选择DevSidecar-x.x.x。dmgUbuntu:请选择DevSidecar-x.x.x.deb其他linux:请选择DevSidecar-x.x.x.AppImage(未测试,不保证有效)linux安装说明请参考linux安装文档注:由于未购买应用证书,应用下载安装后会时不时出现“未知发行者”等安全提示,选择保留即可。2安装后打开注意:mac版的安装需要在“系统偏好设置->安全与隐私->通用”中解锁并允许应用安装3.安装根证书第一次打开会提示安装证书。按照提示进行更新关于根证书的更多信息,请参考为什么要安装根证书?根证书是在本地随机生成的,所以您不用担心根证书的安全性(本应用不收集任何用户信息)。也可以在加速服务设置中自定义根证书(PEM格式的证书和私钥)火狐浏览器需要手动安装证书4开始加速,第一次尝试打开github,会去到一个国外dns服务器获取ip,会比较慢,以后会快点2.github镜像访问这里介绍两个最常用的镜像地址:https://github.com.cnpmjs.orghttps://hub.fastgit.org也就是说上面的镜像是一个克隆版的GitHub,你可以访问上面的镜像网站,该网站的内容是一个与GitHub完全同步的镜像,然后在这个网站上进行下载和克隆操作.用CDNhttps://gh.??api.99988866.xyzhttps://g.ioiox.com以上网站是演示站点,如果打不开,可以查看开源项目:gh-proxy-GitHub(https://hunsh.net/archives/23/)文件来加速自我部署。4.Github加速下载只需复制当前GitHub地址粘贴到输入框即可加速下载!地址:http://toolwa.com/github/5.加速你的Githubhttps://github.zhlh6.cn输入Github仓库地址,使用生成的地址进行gitssh等操作6.谷歌浏览器GitHub加速插件-在(推荐7.GitHubraw加速GitHubraw域名不是github.com而是raw.githubusercontent.com。如果上面的github加速不能加速这个域名,那么可以使用静态CDN提供的反代服务。将raw.githubusercontent.com替换为raw.staticdn.net以加快速度。8、GitHub+Jsdelivrjsdelivr唯一美中不足的是无法获取exe文件和Release附带的exe和dmg文件。也就是说,如果exe文件附在Release里,但不在代码里,是获取不到的。所以只能作为静态文件cdn,不能作为加速下载的发布。9、通过Gitee转叉仓库下载网上有很多相关教程。下面简单介绍一下操作。访问gitee网站:https://gitee.com/并登录,选择最上方的“从GitHub/GitLab导入仓库”如下:要查询的地址基本地址是'github.com','gist.github.com','assets-cdn.github.com','raw.githubusercontent.com','gist.githubusercontent.com','cloud.githubusercontent.com','camo.githubusercontent.com','avatars0.githubusercontent.com','avatars1.githubusercontent.com','avatars2.githubusercontent.com','avatars3.githubusercontent.com','avatars4.githubusercontent.com','avatars5.githubusercontent.com','avatars6.githubusercontent.com','avatars7.githubusercontent.com','avatars8.githubusercontent.com','avatars.githubusercontent.com','github.githubassets.com','user-images.githubusercontent.com','codeload.github.com','favicons.githubusercontent.com','api.github.com'通过python脚本获取地址!/usr/bin/envpythoncoding:utf-8importsocketdefoutput_hosts():domains=['github.com','gist.github.com','assets-cdn.github.com','raw.githubusercontent.com','gist.githubusercontent.com','cloud.githubusercontent.com','camo.githubusercontent.com','avatars0.githubusercontent.com','avatars1.githubusercontent.com','avatars2.githubusercontent.com','avatars3.githubusercontent.com','avatars4.githubusercontent.com','avatars5.githubusercontent.com','avatars6.githubusercontent.com','avatars7.githubusercontent.com','avatars8.githubusercontent.com','avatars.githubusercontent.com','github.githubassets.com','user-images.githubusercontent.com','codeload.github.com','favicons.githubusercontent.com','api.github.com']withopen('hosts.txt','w')asf:f.write('```\n')f.write('#GitHubStart\n')fordomainindomains:print('Queryingipfordomain%s'%domain)ip=socket.gethostbyname(域)打印(IP)f.write('%s%s\n'%(ip,domain))f.write('#GitHubEnd\n')f.write('```\n')ifname=='__main__':output_hosts()执行python脚本,获取如下文GitHubStart140.82.121.3github.com140.82.121.3gist.github.com185.199.110.153assets-cdn.github.com185.199.108.133raw.githubusercontent.com185.199.111.133gist.githubusercontent.com185.199.110.133cloud.githubusercontent.com185.199.111.133camo.githubusercontent.com185.199.111.133avatars0.githubusercontent.com185.199.110.133avatars1.githubusercontent.com181.1919.133avatars1.githubusercontent.com181.1919.13.1githubusercontent.com185.199.109.133avatars3.githubusercontent.com185.199.108.133avatars4.githubusercontent.com185.199.111.133avatars5.githubusercontent.com185.199.109.133avatars6.githubusercontent.com185.199.105.github1111.133avatars6.githubusercontent.com185.199.109.111.133avatars5.githubusercontent.com185.199.109.133avatars6.githubusercontent.com185.199.105.github1content1791avatars185.199.109.111.133头像.133avatars8.githubusercontent.com185.199.108.133avatars.githubusercontent.com185.199.111.154github.githubassets.com185.199.109.133user-images.githubusercontent.com140.82.112.9codeload.github.com185.199.110.133favicons.githubusercontent.com192.30.255.116api.github.comGitHubEnd10.2host文件映射具体操作参考:GitHub-Host加速Windows系统:修改C:\Windows\System32\drivers\etc\hosts文件网络刷新ipconfig/flushdnsLinux系统:修改C:\Windows\System32\drivers\etc\hosts文件网络刷新systemctlrestartnetwork
