# 大学镜像
# 企业镜像
# 组织镜像
名称 | 地址 |
---|---|
OpenTUNA | https://opentuna.cn/ (opens new window) |
# Docker Hub 镜像
# NPM 镜像
npm config set registry https://npmreg.proxy.ustclug.org/
yarn config set registry https://npmreg.proxy.ustclug.org/
pnpm config set registry https://npmreg.proxy.ustclug.org/
# pip 镜像
# 临时使用
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple [包名]
# 永久使用
Unix、Linux、Mac OS: ~/.pip/pip.conf
Windows: %HOME%\pip\pip.ini
文件中写入
[global]
trusted-host=pypi.tuna.tsinghua.edu.cn
timeout=6000
index-url=https://pypi.tuna.tsinghua.edu.cn/simple
# Cargo 镜像
Unix、Linux、Mac OS ~/.cargo/config
写入文件中
# 指定镜像
# replace-with = '源镜像名'
replace-with = 'ustc'
[source.ustc]
registry = "https://mirrors.ustc.edu.cn/crates.io-index"
# Gem 镜像
# Gem
# 添加 中国科学技术大学 镜像源并移除默认源
gem sources --add https://mirrors.ustc.edu.cn/rubygems/ --remove https://rubygems.org/
# 列出已有源
gem sources -l
# 应该只有 USTC 一个
# Bundle
bundle config mirror.https://rubygems.org https://mirrors.ustc.edu.cn/rubygems/
# Termux 镜像
# 更多 Termux 镜像
https://github.com/termux/termux-packages/wiki/mirrors (opens new window)
# TUNA 帮助文档
配置请参考 TUNA 手动修改方法 地址:https://mirrors.tuna.tsinghua.edu.cn/help/termux/ (opens new window)
# 下次如何找到我们?
Google 或 Bing 上搜索 “开源镜像索引”