zoukankan      html  css  js  c++  java
  • CentOS系统修改yum源

    看了一下自己之前写的文章,写的那叫一个垃圾。无地自容。作为一个菜鸡。现在不妨在博客上记录一下自己学习的记录,同时发表出来,也算作是对自己的勉励。

    吾辈不孤,吾道不寡,诸君加油!

    下面进入正题:

    CentOS系统修改yum源:

    由于国内访问国外源的限制,很多时候会使得下载速度超慢。于是,就衍生出了国内用户安装centos时需要配置yum源的问题。

    步骤:

    1,首先备份原yum源:

    [root@localhost ~]# cd /etc/yum.repos.d/
    
    [root@localhost yum.repos.d]# mkdir repo_bak
    
    [root@localhost yum.repos.d]# mv *.repo repo_bak/

    2,在当前文件夹下下载对应版本的阿里云的yum源:

    可参考:https://developer.aliyun.com/mirror/centos

    [root@localhost yum.repos.d]# wget http://mirrors.aliyun.com/repo/Centos-7.repo
    
    [root@localhost yum.repos.d]# ls
    Centos-7.repo   repo.bak

    3,清除yum缓存:

    yum clean all

    4,生成新的yum缓存:

    yum makecache

    结束

    参考文章:

    https://www.cnblogs.com/renpingsheng/p/7845096.html

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

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

  • 相关阅读:
    SQLyog远程连接Linux服务器错误2003解决
    Linux/UNIX系统编程手册 练习3.8
    概括
    Linux 命令
    句柄类
    带有C风格的 CLib库
    Linux 命令
    C++ 编程思想 第三章 3-2
    一.创建型模式 Prototype 模式
    一.创建型模式 Builder
  • 原文地址:https://www.cnblogs.com/scivous/p/15268037.html
Copyright © 2011-2022 走看看