zabbix安装源

本文转自:https://www.cnblogs.com/tz90/p/12398778.html

国内zabbix源

阿里巴巴开源镜像站
https://mirrors.aliyun.com/zabbix/
华为开源镜像站
https://mirrors.huaweicloud.com/zabbix/
清华大学开源软件镜像站
https://mirror.tuna.tsinghua.edu.cn/zabbix/
上海大学开源镜像站
https://mirrors.shu.edu.cn/zabbix/

添加yum源#

复制代码
cat <<EOF > /etc/yum.repos.d/zabbix.repo
[zabbix]
name=Zabbix Official Repository - \$basearch
baseurl=https://mirrors.aliyun.com/zabbix/zabbix/4.0/rhel/7/\$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591

[zabbix-non-supported]
name=Zabbix Official Repository non-supported - \$basearch
baseurl=https://mirrors.aliyun.com/zabbix/non-supported/rhel/7/\$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
gpgcheck=1
EOF
复制代码

添加密钥#

curl https://mirrors.aliyun.com/zabbix/RPM-GPG-KEY-ZABBIX-A14FE591 \
    -o /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
curl https://mirrors.aliyun.com/zabbix/RPM-GPG-KEY-ZABBIX \
    -o /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX

安装zabbix#

yum install -y zabbix-server-mysql zabbix-web-mysql zabbix-agent
今天的学习是为了以后的工作更加的轻松!
原文地址:https://www.cnblogs.com/tortoise512/p/15660901.html