安装环境是:如下 [root@Charley ~]# cat /etc/redhat-release ========》查看的是版本 CentOS release 6.6 (Final) [root@Charley ~]# uname -r ========》内核 2.6.32-504.el6.x86_64 [root@Charley ~]# 1、备份(必须要备份) mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup ===执行此命令 2、下载安装源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo ===执行到命令行 [root@Charley ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo --2015-06-08 10:27:56-- http://mirrors.aliyun.com/repo/Centos-6.repo mirrors.aliyun.com... 112.124.140.210, 115.28.122.210 mirrors.aliyun.com|112.124.140.210|:80... TTP ... 200 OK 72 (2.5K) [application/octet-stream] tc/yum.repos.d/CentOS-Base.repo 100%[=============================================================================================================================>] 2,572 --.-K/s in 0s 2015-06-08 10:27:58 (272 MB/s) - c/yum.repos.d/CentOS-Base.repo2572/2572]) 此处图显示的是下载安装好之后的结果。 (责任编辑:IT) |