一、同步資源nginx
# rsync -vrt rsync://repo.zabbix.com/mirror/zabbix/3.4/rhel/7/x86_64/ /home/mirrors/zabbix/3.4/rhel/7/x86_64/
二、配置apache發佈鏡像目錄,固然也能夠用nginx或者其餘web服務器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>
三、最後,配置repo就可使用了apache
[zabbix] name=Zabbix Official Repository - $basearch baseurl=http://10.100.10.89/zabbixrepo/3.4/rhel/7/$basearch/ enabled=1 gpgcheck=0