maven
NPM
变更 NPM 远程源为淘宝源.
NPM config set registry https://registry.npm.taobao.org
查看 NPM 远程源配置
- NPM config get registry
- docker
- yum
CentOS 下更改 yum 远程源
安装 wget
yum install -y wget (如果已经安装了则省略)
备份 /etc/yum.repos.d/CentOS-Base.repo 文件
- cd /etc/yum.repos.d/
- mv CentOS-Base.repo CentOS-Base.repo.back
下载阿里云的 CentOS-7.repo 文件 (根据不同 CentOS 版本更换数字)
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
重新加载 yum
- yum clean all
- yum makecache
检查配置的源是否是阿里的
cat /etc/yum.repos.d/CentOS-Base.repo
来源: http://www.bubuko.com/infodetail-3330497.html