1. 进入yum配置文件目录
    cd /etc/yum.repos.d/

  2. 备份配置文件
    mv CentOS-Base.repo CentOS-Base.repo.bak

  3. 下载163的配置
    wget Base-163.repo,下载下来的文件名为 CentOS6- Base-163.repo

  4. 改名
    mv CentOS6-Base-163.repo CentOS-Base.repo

  5. 更新数据库
    yum update

— 于 共写了222个字
— 文内使用到的标签:


电子邮件地址不会被公开。 必填项已用*标注

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see