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

相关文章:

  • 2021-12-22
  • 2021-12-17
  • 2021-05-20
  • 2022-01-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2021-08-14
  • 2022-01-17
  • 2021-09-27
  • 2021-10-02
  • 2021-07-27
  • 2021-12-16
  • 2021-12-21
相关资源
相似解决方案