赞
踩
centos7:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repo
debian
:
sed -i 's#http://deb.debian.org#https://mirrors.cloud.tencent.com#g' /etc/apt/sources.list
sed -i 's|security.debian.org/debian-security|mirrors.cloud.tencent.com/debian-security|g' /etc/apt/sources.list
alpine:
sed -i 's/dl-cdn.alpinelinux.org/mirrors.cloud.tencent.com/g' /etc/apk/repositories
ubuntu:
sed -i 's#http://archive.ubuntu.com#https://mirrors.cloud.tencent.com#g' /etc/apt/sources.list
sed -i 's#http://security.ubuntu.com#https://mirrors.cloud.tencent.com#g' /etc/apt/sources.list
pip:
pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple
npm:
npm config set registry http://mirrors.cloud.tencent.com/npm/
yarn:
yarn config set registry http://mirrors.cloud.tencent.com/npm/
rust依赖,针对编译:
[source.crates-io]
replace-with = 'rsproxy-sparse'
[source.rsproxy]
registry = "https://rsproxy.cn/crates.io-index"
[source.rsproxy-sparse]
registry = "sparse+https://rsproxy.cn/index/"
[registries.rsproxy]
index = "https://rsproxy.cn/crates.io-index"
[net]
git-fetch-with-cli = true
rustup镜像,针对安装rust:
export RUSTUP_DIST_SERVER="https://rsproxy.cn"
export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"
不要用阿里,太慢了,偶尔只有50kb左右
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。