PyPi 镜像
临时使用
pip install -i [url] [some-package]
设为默认
pip config set global.index-url [url]
国内镜像地址
清华大学:https://pypi.tuna.tsinghua.edu.cn/simple
阿里:https://mirrors.aliyun.com/pypi/simple/
豆瓣:https://pypi.doubanio.com/simple/
北京外国语大学:https://mirrors.bfsu.edu.cn/pypi/web/simple/
JDK 镜像
下载镜像
清华AdoptOpenJDK镜像:https://mirrors.tuna.tsinghua.edu.cn/Adoptium/
华为java-jdk镜像:https://repo.huaweicloud.com/java/jdk/
各种JAVA JDK的镜像分发:https://www.injdk.cn/
nvm 镜像
安装 nvm
1
| curl -sS -o- https://gh.slw.im/raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | sed -e "s/raw.githubusercontent.com/gh.slw.im\/raw.githubusercontent.com/g" | sed -e "s/github.com/gh.slw.im\/github.com/g" | bash
|
1
| wget -qO- https://gh.slw.im/raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | sed -e "s/raw.githubusercontent.com/gh.slw.im\/raw.githubusercontent.com/g" | sed -e "s/github.com/gh.slw.im\/github.com/g" | bash
|
nvm 镜像(安装node)
1
| export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node
|
nvm 指定默认 node 版本
nvm alias default [node-version]
npm 镜像
临时使用
npm install [some-package] --registry [url]
设为默认
npm config set registry [url]
npmmirror:
1
| npm config set registry https://registry.npmmirror.com
|
UTSC:
1
| npm config set registry https://npmreg.proxy.ustclug.org
|
cnpmjs:
1
| npm config set registry https://r.cnpmjs.org
|
已废弃 淘宝:https://registry.npm.taobao.org
淘宝 NPM 镜像站喊你切换新域名啦
淘宝 npm 域名即将切换 && npmmirror 重构升级 && 微信交流群
Docker 安装
已配置docker registry镜像,可以直接通过下面的脚本安装。
1
| curl -sSL https://dl.slw.app/Linux/Shell/docker_install.sh | sh
|
Rust crates.io
编辑 ~/.cargo/config
文件,添加以下内容:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| [source.crates-io] registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'tuna'
[source.tuna] registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
[source.ustc] registry = "git://mirrors.ustc.edu.cn/crates.io-index"
[source.sjtu] registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index"
[source.rustcc] registry = "git://crates.rustcc.cn/crates.io-index"
|
默认使用清华镜像源,可以修改replace-with
的值使用其他已经定义好的镜像地址。
Go
1 2 3 4 5 6 7 8 9 10 11 12 13
| go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
go env -w GOPROXY=https://goproxy.io,direct
|
参考链接:Go 国内加速:Go 国内加速镜像