Advertisement

CentOS 配置 阿里 镜像 源 设置 阿里 镜像 源 作为 image source

阅读量:

修改为阿里yum源-mirrors.aliyun.com

1、首先备份系统自带yum源配置文件/etc/yum.repos.d/CentOS-Base.repo

将源目录/CentOS-Base.repo移动到目标目录/CentOS-Base.repo.backup。

2、查看CentOS系统版本

[root@localhost ~]``# lsb_release -a

3、下载ailiyun的yum源配置文件到/etc/yum.repos.d/
CentOS7

下载该软件包到指定目录

CentOS6

[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

CentOS5

运行命令:获取镜像源并分配权限

[rb@localhost ~]# get --default-file-name /etc/yum.repos.d/CentOSBase.repo http://mirrors.aliyun.com/repo/Centos-5.repo

4、运行yum makecache生成缓存

[root@

全部评论 (0)

还没有任何评论哟~