2016.7.1 centos6.5 64位镜像yum源回复-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

2016.7.1 centos6.5 64位镜像yum源回复

焦尾鲤 2016-07-01 13:13:28 5972
今天更改配置,恢复了公共镜像centos6.5 64位,安装lnmp的时候失败,发现是yum源缺失,
需要把/etc/ [font="]/etc/yum.repos.d/backup/CentOS-Base.repo     移动到/etc/ [font="]/etc/yum.repos.d/CentOS-Base.repo
分享到
取消 提交回答
全部回答(1)
  • dongshan8
    2016-07-01 17:42:35
    楼主您好,

    感谢您的指点。实践了一下,是如您所说的:

    [root@iZ23jyp275rZ ~]# ls /etc/yum.repos.d/
    backup
    [root@iZ23jyp275rZ ~]# ls /etc/yum.repos.d/backup/
    CentOS-Base.repo  epel.repo

    [root@iZ23jyp275rZ ~]# yum update
    Loaded plugins: security
    Setting up Update Process
    No Packages marked for Update
    [root@iZ23jyp275rZ ~]# yum install httpd
    Loaded plugins: security
    Setting up Install Process
    No package httpd available.
    Error: Nothing to do


    [root@iZ23jyp275rZ ~]# mv /etc/yum.repos.d/backup/CentOS-Base.repo /etc/yum.repos.d/
    [root@iZ23jyp275rZ ~]# yum install httpd
    Loaded plugins: security
    base                                                                                 | 3.7 kB     00:00
    base/primary_db                                                                      | 4.7 MB     00:04
    extras                                                                               | 3.4 kB     00:00
    extras/primary_db                                                                    |  37 kB     00:00
    updates                                                                              | 3.4 kB     00:00
    updates/primary_db                                                                   | 748 kB     00:00
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check

    0 0
云计算
使用钉钉扫一扫加入圈子
+ 订阅

时时分享云计算技术内容,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。

推荐文章