换源专题
Archlinux换源
# /etc/pacman.d/mirrorlist
Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch
# /etc/pacman.conf
[archlinuxcn]
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
Cargo更换USTC源
mkdir -vp ${CARGO_HOME:-$HOME/.cargo}
cat << EOF | tee -a ${CARGO_HOME:-$HOME/.cargo}/config
[source.crates-io]
replace-with = 'ustc'
[source.ustc]
registry = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/"
EOF
rm -rf ~/.cargo/.package-cache
Github代理加速
使用方式是在下载链接的前面加上 https://ghproxy.com/
举个例子,代理后的***链接:
https://ghproxy.com/https://github.com/Fndroid/***_for_windows_pkg/releases/download/0.20.34/***.for.Windows-0.20.34-x64-linux.tar.gz
Maven换源
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<mirrors>
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
</mirrors>
</settings>
Node系换源
# Yarn换源
yarn config set registry https://registry.npmmirror.com/
# pnpm换源
pnpm config set registry https://registry.npmmirror.com/

浙公网安备 33010602011771号