zoukankan      html  css  js  c++  java
  • 添加阿里云源仓库

    先备份原始源

    mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bac.20200526
    

    浏览器找到源地址

    记住下面的地址

    aliyun.com

    mirrors.aliyun.com

    https://developer.aliyun.com/mirror/

    找到CentOS 8

    CentOS 8

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

    或者

    curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
    

    回到shell粘贴上述某个命令、

    按网页上刷新源即可

    运行 yum makecache 生成缓存

    [10:27:01 root@C8[ ~]#yum makecache
    Repository AppStream is listed more than once in the configuration
    Repository extras is listed more than once in the configuration
    Repository PowerTools is listed more than once in the configuration
    Repository centosplus is listed more than once in the configuration
    CentOS-8 - AppStream                                 7.1 kB/s | 4.3 kB     00:00    
    CentOS-8 - Base - mirrors.aliyun.com                  34 kB/s | 3.9 kB     00:00    
    CentOS-8 - Extras - mirrors.aliyun.com                11 kB/s | 1.5 kB     00:00    
    Metadata cache created.
    
    * * * 胖并快乐着的死肥宅 * * *
  • 相关阅读:
    ActiveMQ简单介绍+简单实例
    分布式开放消息系统(RocketMQ)的原理与实践
    RocketMQ实战(一)
    十分钟入门RocketMQ
    android Lib
    JDK1.8 Lambda
    JDK1.8聚合操作
    JNI
    Gradle插件
    Weex命令
  • 原文地址:https://www.cnblogs.com/bpzblog/p/12963948.html
Copyright © 2011-2022 走看看