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/

  • 相关阅读:
    (一)Ionic 项目搭建(参考)
    MySQL安装及常用命令
    (五)vue.js 集成scss(参考)
    (四)vue.js 外部配置文件(参考)
    (三)vue.js api统一管理(参考)
    好玩的折纸效果
    PropTypes没有定义的问题
    border边框设置为1px
    写了一个好玩的弹性列表效果
    H5中的requestAnimationFrame
  • 原文地址:https://www.cnblogs.com/it-peng/p/11393828.html
Copyright © 2011-2022 走看看