yum 镜像的问题
网络问题大家都知道怎么回事
配置下zabbix使用阿里的源就可以了
[root@cyy /]# cd /etc/yum.repos.d/ [root@cyy yum.repos.d]# cp zabbix.repo zabbix.repo.bak [zabbix] name=Zabbix Official Repository - $basearch #baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/$basearch/ baseurl=https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 [zabbix-frontend] name=Zabbix Official Repository frontend - $basearch #baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/$basearch/frontend baseurl=https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 [zabbix-debuginfo] name=Zabbix Official Repository debuginfo - $basearch baseurl=https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/$basearch/ #baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/$basearch/debuginfo/ enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 gpgcheck=1 [zabbix-non-supported] name=Zabbix Official Repository non-supported - $basearch #baseurl=http://repo.zabbix.com/non-supported/rhel/7/$basearch/ baseurl=https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/$basearch/ enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX gpgcheck=1 ~
替换下就可以了
已安装: zabbix-agent.x86_64 0:5.0.3-1.el7 zabbix-server-mysql.x86_64 0:5.0.3-1.el7 作为依赖被安装: OpenIPMI.x86_64 0:2.0.27-1.el7 OpenIPMI-libs.x86_64 0:2.0.27-1.el7 OpenIPMI-modalias.x86_64 0:2.0.27-1.el7 fping.x86_64 0:3.10-4.el7 libevent.x86_64 0:2.0.21-4.el7 net-snmp-libs.x86_64 1:5.7.2-48.el7_8.1 unixODBC.x86_64 0:2.3.1-14.el7 完毕!