安装yum源

安装163镜像源:

1、下载repo
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
2、替换repo
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.bak
mv CentOS6-Base-163.repo CentOS-Base.repo
3、更新cache
yum clean all
yum makecache
4、测试
yum repolist

问题:

1、

yum时出现其他程序在运行
解决方法:
kill -9 杀死进程
rm -rf /var/run/yum.pid

2、

timeout
解决方法:
vi /etc/yum.conf
注释掉proxy

原文地址:https://www.cnblogs.com/xushun/p/11203177.html