有时候CentOS默认的yum源不一定是国内镜像,导致yum在线安装及更新速度不是很理想。需要将yum源设置为国内镜像站点。
1.2.1 腾讯源
1.备份系统旧配置文件
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、进入yum源配置文件所在的文件夹
[root@linux ~]# cd /etc/yum.repos.d/
3、下载==mirrors.tencentyun.com==的yum源配置文件到上面那个文件夹内
CentOS5
wget -O /etc/yum.repos.d/CentOS-Base.repo http:/mirrors.tencentyun.com/repo/centos5_base.repo
CentOS6
wget -O /etc/yum.repos.d/CentOS-Base.repo htt