zoukankan      html  css  js  c++  java
  • 更换yum源

    [1] 首先备份/etc/yum.repos.d/CentOS-Base.repo

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

    [2] 进入yum源配置文件所在文件夹

    [root@localhost yum.repos.d]# cd /etc/yum.repos.d/

    [3] 下载163的yum源配置文件,放入/etc/yum.repos.d/(操作前请做好相应备份)

    [root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

    [4] 运行yum makecache生成缓存

    [root@localhost yum.repos.d]# yum makecache







    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
  • 相关阅读:
    腾讯安全上海游戏部门笔试题
    2017
    2016
    2015
    2014
    2013
    2012
    2011
    2010
    2009
  • 原文地址:https://www.cnblogs.com/sunshineyang/p/6006668.html
Copyright © 2011-2022 走看看