当前位置:   article > 正文

国内最快的yum,debian,alpine,ubuntu,pip,npm,yarn源是哪些,以及rust最快的源_debian源哪个最快

debian源哪个最快

centos7:

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repo
  • 1

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
  • 1
  • 2

alpine:

sed -i 's/dl-cdn.alpinelinux.org/mirrors.cloud.tencent.com/g' /etc/apk/repositories
  • 1

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
  • 1
  • 2

pip:

pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple
  • 1

npm:

npm config set registry http://mirrors.cloud.tencent.com/npm/
  • 1

yarn:

yarn config set registry http://mirrors.cloud.tencent.com/npm/
  • 1

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

rustup镜像,针对安装rust:

export RUSTUP_DIST_SERVER="https://rsproxy.cn"
export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"
  • 1
  • 2

不要用阿里,太慢了,偶尔只有50kb左右

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/480836
推荐阅读
相关标签
  

闽ICP备14008679号