美文网首页
阿里云软件源配置说明

阿里云软件源配置说明

作者: WinnXUDONG | 来源:发表于2018-03-20 09:37 被阅读0次

    更该CentOS的源

    1. 备份

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

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

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

    1. 运行yum makecache生成缓存

    更该Ubuntu的源

    方法1:软件包管理中心(推荐)。在软件包管理中心“软件源”中选择“中国的服务器”下mirros.aliyun.com即可自动使用。
    方法2:手动更改配置文件。编辑/etc/apt/sources.list文件(需要使用sudo), 添加相应源镜像信息(操作前请做好相应备份)。

    阿里云镜像源

    阿里云开源镜像页面,点击对应Mirror分类的help标签,可以查看到更新源的方法,按步骤操作即可。

    相关文章

      网友评论

          本文标题:阿里云软件源配置说明

          本文链接:https://www.haomeiwen.com/subject/bzllqftx.html