Github资源加速
你还在为github限速而烦恼吗? 你还在为没有机场而烦恼吗? 你还在为回到家下载源慢,不想卷而烦恼吗?
注: 仅面向没有机场的普通开发者, 有机场的大佬请当没看到.
Clone加速
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
git clone https://github.com/kubernetes/kubernetes.git
git clone https://github.com.cnpmjs.org/kubernetes/kubernetes.git
git clone https://hub.fastgit.org/kubernetes/kubernetes.git
git clone https://gitclone.com/github.com/kubernetes/kubernetes.git
git config --global url."https://hub.fastgit.org".insteadOf https://github.com
git config --global --unset url.https://github.com/.insteadof
|
Release 加速
1 2 3 4 5 6 7
|
wget https://github.com/chaosblade-io/chaosblade/releases/download/v1.4.0/chaosblade-1.4.0-linux-amd64.tar.gz
wget https://download.fastgit.org/chaosblade-io/chaosblade/releases/download/v1.4.0/chaosblade-1.4.0-linux-amd64.tar.gz wget https://hub.fastgit.org/chaosblade-io/chaosblade/releases/download/v1.4.0/chaosblade-1.4.0-linux-amd64.tar.gz
|
Raw 文件加速
1 2 3 4 5 6 7
|
wget https://raw.githubusercontent.com/kubernetes/kubernetes/master/README.md
wget https://raw.staticdn.net/kubernetes/kubernetes/master/README.md wget https://raw.fastgit.org/kubernetes/kubernetes/master/README.md
|
Golang 国内加速
Go 1.13 及以上(推荐)
打开你的终端并执行
1 2
| go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn,direct
|
macOS 或 Linux
打开你的终端并执行
1 2 3 4 5 6 7 8
| export GO111MODULE=on export GOPROXY=https://goproxy.cn
echo "export GO111MODULE=on" >> ~/.profile echo "export GOPROXY=https://goproxy.cn" >> ~/.profile source ~/.profile
|
Maven 加速
修改setting.xml
,添加如下内容.
阿里云
1 2 3 4 5 6
| <mirror> <id>aliyunmaven</id> <mirrorOf>*</mirrorOf> <name>阿里云公共仓库</name> <url>https://maven.aliyun.com/repository/public</url> </mirror>
|
腾讯云
1 2 3 4 5 6
| <mirror> <id>nexus-tencentyun</id> <mirrorOf>*</mirrorOf> <name>Nexus tencentyun</name> <url>http://mirrors.cloud.tencent.com/nexus/repository/maven-public/</url> </mirror>
|
pip
修改文件~/.pip/pip.conf
1 2 3 4 5
| [global] index-url = https://mirrors.aliyun.com/pypi/simple/
[install] trusted-host=mirrors.aliyun.com
|
CentOS Yum加速
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup cVersion=$(cat /etc/redhat-release |awk -F'release ' '{print $2}'| awk -F. '{print $1}')
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-${cVersion}.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos${cVersion}_base.repo
yum clean all && yum makecache
|
Ubuntu apt加速
https://developer.aliyun.com/mirror/ubuntu?spm=a2c6h.13651102.0.0.3e221b113cPbgN
自己看吧
alpine apk加速
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
参考文章
https://blog.frytea.com/archives/504/
https://goproxy.cn/
https://developer.aliyun.com/mirror/
https://mirrors.cloud.tencent.com/