本次使用
pip install -i https://mirrors.cloud.tencent.com/pypi/simple coscmd
pip install -r requirements.txt -i https://mirrors.cloud.tencent.com/pypi/simple
pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple
全局配置
# 全局配置
omposer config -g repo.packagist composer https://mirrors.cloud.tencent.com/composer/
# 取消配置
composer config repo.packagist composer https://mirrors.cloud.tencent.com/composer/
# 项目配置,项目根目录下执行
composer config repo.packagist composer https://mirrors.cloud.tencent.com/composer/
# 取消配置,项目根目录下执行
composer config --unset repos.packagist
npm config set registry https://mirrors.cloud.tencent.com/npm/
yarn config set registry https://mirrors.cloud.tencent.com/npm/
shell 中使用
sed -Ei "s@(security|ports|archive).ubuntu.com@mirrors.cloud.tencent.com@g" /etc/apt/sources.list.d/ubuntu.sources
sed -Ei "s@(security|ports|archive).ubuntu.com@mirrors.cloud.tencent.com@g" /etc/apt/sources.list
shell 中使用
sed -i "s@http://deb.debian.org/debian@http://mirrors.cloud.tencent.com/debian@g" /etc/apt/sources.list.d/debian.sources
shell 中使用
sed -i "s@http://deb.debian.org/debian@http://mirrors.tencent.com/debian@g" /etc/apt/sources.list
shell 中使用
sed -i "s@http://deb.debian.org/debian-security@http://mirrors.cloud.tencent.com/debian-security@g" /etc/apt/sources.list
sed -i "s@http://deb.debian.org/debian@http://mirrors.cloud.tencent.com/debian-archive/debian@g" /etc/apt/sources.list
shell 中使用
cat <<EOF > /etc/apt/sources.list
deb http://mirrors.tencent.com/debian-archive/debian stretch main
deb http://mirrors.tencent.com/debian-archive/debian-security stretch/updates main
EO
shell 中使用
sed -i 's@dl-cdn.alpinelinux.org@mirrors.cloud.tencent.com@g' /etc/apk/repositories