zoukankan      html  css  js  c++  java
  • rsync同步官方zabbix仓库搭建本地yum源

    1、同步资源

    # rsync -vrt rsync://repo.zabbix.com/mirror/zabbix/3.4/rhel/7/x86_64/ /home/mirrors/zabbix/3.4/rhel/7/x86_64/
    

    2、配置apache发布镜像目录,当然也可以用nginx或者其他web服务器

    # vim /etc/httpd/conf/httpd.conf
    
    # 注释掉这一段
    # <Directory />
       # AllowOverride none
       # Require all denied
    # </Directory>
    
    # 添加这一段
    Alias /zabbixrepo "/home/mirrors/zabbix/"
    <Directory "/home/mirrors/zabbix">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    

    3、最后,配置repo就可以使用了

    [zabbix]
    name=Zabbix Official Repository - $basearch
    baseurl=http://10.100.10.89/zabbixrepo/3.4/rhel/7/$basearch/
    enabled=1
    gpgcheck=0
    
  • 相关阅读:
    index()方法
    extend()方法
    count()方法
    copy()方法
    clear()方法
    append()方法
    IE botton 点击文字下沉
    IE滚动条
    关闭windows10自动更新
    vue文件名规范
  • 原文地址:https://www.cnblogs.com/keithtt/p/10547653.html
Copyright © 2011-2022 走看看