前言
操作系统为Centos
[root@ops ~]# uname -a Linux ops.cluster105.cc 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux [root@ops ~]# cat /etc/centos-release CentOS Linux release 7.9.2009 (Core)
部署zabbix
部署zabbix源
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm yum clean all yum makecheck
1 [root@ops ~]# cat /etc/yum.repos.d/zabbix.repo 2 [zabbix] 3 name=Zabbix Official Repository - $basearch 4 baseurl=https://repo.huaweicloud.com/zabbix/zabbix/5.0/rhel/7/x86_64/ 5 enabled=1 6 gpgcheck=1 7 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 8 9 [zabbix-frontend] 10 name=Zabbix Official Repository frontend - $basearch 11 baseurl=https://repo.huaweicloud.com/zabbix/zabbix/5.0/rhel/7/x86_64/frontend 12 enabled=1 13 gpgcheck=1 14 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 15 16 [zabbix-debuginfo] 17 name=Zabbix Official Repository debuginfo - $basearch 18 baseurl=https://repo.huaweicloud.com/zabbix/zabbix/5.0/rhel/7/x86_64/debuginfo/ 19 enabled=0 20 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 21 gpgcheck=1 22 23 [zabbix-non-supported] 24 name=Zabbix Official Repository non-supported - $basearch 25 baseurl=https://repo.huaweicloud.com/zabbix/zabbix/5.0/rhel/7/x86_64/ 26 enabled=1 27 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX 28 gpgcheck=1 29 30 31 [root@ops ~]# cd /etc/pki/rpm-gpg/ 32 [root@ops rpm-gpg]# wget https://repo.huaweicloud.com/zabbix/RPM-GPG-KEY-ZABBIX-A14FE591