zoukankan      html  css  js  c++  java
  • 配置源

    配置网络源
    vim /etc/yum.repos.d

    [epel1]
    name = epel
    enabled = 1
    gpgcheck = 0
    baseurl = https://mirrors.aliyun.com/epel/7/x86_64/
    cost = 1

    [centos]
    name = centos base
    enabled = 1
    gpgcheck = 0
    baseurl = http://mirrors.163.com/centos/7/os/x86_64/

    ----------------------------------------------------------------------------------------------------------------------------

    下载docker时 还需要使用到extra和epel源
    [extra]
    name=centos extra
    enabled=1
    gpgcheck=0
    baseurl=https://mirrors.aliyun.com/centos/7/extras/x86_64/


    [epel]
    name=epel
    enabled=1
    gpgcheck=0
    baseurl=https://mirrors.aliyun.com/epel/7Server/x86_64/

    ----------------------------------------------------------------------------------------------------------------------------

    本地源
    [peng]
    name=peng1
    enabled=1
    gpgcheck=0
    baseurl=file:///mnt
    ----------------------------------------------------------------------------------------------------------------------------

    如果下载失败 需要写入下面源
    https://mirrors.aliyun.com/centos/7/os/x86_64/

    ----------------------------------------------------------------------------------------------------------------------------

    配置后需要加载
    yum clean all
    yum repolist
    mount /dev/cdrom /mnt 挂载

    ------------------------------------------------------------------------------------
    K8s 下载docker 需要配置本地源
    [peng]
    name=peng1
    enabled=1
    gpgcheck=0
    baseurl=file:///mnt

    [os]
    name=os
    enabled=1
    gpgcheck=0
    baseurl=https://mirrors.aliyun.com/centos/7/os/x86_64/

  • 相关阅读:
    hdoj 1002 A + B Problem II
    hdoj 1234 开门人和关门人
    hdoj 2203 亲和串
    nyoj 73 比大小
    81B
    信息传递
    bzoj1787
    最少交换次数
    100803C
    火柴排队
  • 原文地址:https://www.cnblogs.com/it-peng/p/11393828.html
Copyright © 2011-2022 走看看