zoukankan      html  css  js  c++  java
  • red hat yum源This system is not registered to Red Hat Subscription Management问题

    参考链接https://www.cnblogs.com/wdjsbk/p/9629931.html

    换yum源后,仍然是未注册,尝试了这个后配好的

    配置阿里云yum源 

    1.备份你的原镜像文件,以免出错后可以恢复   

      mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

    2.下载新的CentOS-Base.repo 到/etc/yum.repos.d/

        wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

    3.我们需要进入CentOS-Base.repo文件   vi   CentOS-Base.repo

      修改文件中的baseurl地址

    修改前:

    修改后:

    方便复制:

    baseurl=http://mirrors.aliyun.com/centos/7/os/x86_64/

    http://mirrors.aliyuncs.com/centos/7/os/x86_64/

    http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/

     

    baseurl=http://mirrors.aliyun.com/centos/7/updates/x86_64/

    http://mirrors.aliyuncs.com/centos/7/updates/x86_64/

    http://mirrors.cloud.aliyuncs.com/centos/7/updates/x86_64/

     

    baseurl=http://mirrors.aliyun.com/centos/7/extras/x86_ 64/

    http: //mirrors.aliyuncs.com/centos/7/extras/x86_ 64/

    http: //mirrors.cloud.aliyuncs.com/centos/7/extras/x86_ 64/

    baseurl=http://mirrors.aliyun.com/centos/7/centosplus/x86_ 64/

    http: //mirrors.aliyuncs.com/centos/7/centosplus/x86_ 64/

    http: //mirrors.cloud.aliyuncs.com/centos/7/centosplus/x86_ 64/

    baseurl=http: //mirrors.aliyun.com/ centos/7/contrib/ x86_64/

    http: //mirrors.aliyuncs.com/centos/7/contrib/x86_64/

    http: //mirrors.cloud. aliyuncs.com/centos/7/contrib/x86_ 64/

    4.清楚原有yum缓存   yum clean all

    5.生成缓存yum makecache

    然后就可以了

  • 相关阅读:
    python返回函数与匿名函数
    Session&Cookie
    write RE validation
    hello2 source anaylis
    Filter
    Development descriptor
    web.xml配置详解
    Annotation
    injector
    container
  • 原文地址:https://www.cnblogs.com/xingxinda/p/13092581.html
Copyright © 2011-2022 走看看