Centos换阿里源
- 获取配置
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
配置代理 /etc/yum.conf
proxy=http://1.2.3.4:5555
配置代理参考:
正向代理服务器nginx, squid, tinyproxy
清理缓存
sudo yum clean all
生成新的缓存
sudo yum makecache