zoukankan      html  css  js  c++  java
  • Linux--本地yum库

    Linux配置本地yum云:

    第一步:把cd 挂载到目录树

      mount /dev/cdrom /mnt/media

    第二步:增加/etc/yum.repo.d/local.repo

      touch /etc/yum.repo.d/local.repo

      vim /etc/yum.repo.d/local.repo

      

    [local]
    name=Extra Packages for Enterprise Linux 6 - $basearch
    baseurl=file:///mnt/media/
    failovermethod=priority
    enabled=1
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    
    [HighAvailability]
    name=HighAvailability
    baseurl=file:///mnt/media/HighAvailability/
    failovermethod=priority
    enabled=1
    gpgckeck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    
    
    [LoadBalancer]
    name=HighAvailability
    baseurl=file:///mnt/media/LoadBalancer/
    failovermethod=priority
    enabled=1
    gpgckeck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    
    
    [Server]
    name=HighAvailability
    baseurl=file:///mnt/media/Server/
    failovermethod=priority
    enabled=1
    gpgckeck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    
    
    [ResilientStorage]
    name=HighAvailability
    baseurl=file:///mnt/media/ResilientStorage/
    failovermethod=priority
    enabled=1
    gpgckeck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    
    [ScalableFileSystem]
    name=ScalableFileSystem
    baseurl=file:///mnt/media/ScalableFileSystem/
    failovermethod=priority
    enabled=1
    gpgckeck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    

      

  • 相关阅读:
    程序修炼之道——从小工到专家(3)
    组合
    子类重用父类的功能
    对象之间的交互
    属性查找与绑定方法
    类与对象的定义与使用
    hashlib模块subprocess模块
    configerparser模块
    shelve模块 xml模块
    sys模块 json pickle模块
  • 原文地址:https://www.cnblogs.com/JiangLe/p/5015218.html
Copyright © 2011-2022 走看看