国内zabbix源总结
目前发现的有以下几个站点:
1.阿里巴巴开源镜像站(推荐使用)地址:https://mirrors.aliyun.com/zabbix/2.华为开源镜像站(推荐使用)地址:https://mirrors.huaweicloud.com/zabbix/3.清华大学开源软件镜像站地址:https://mirror.tuna.tsinghua.edu.cn/zabbix/4.上海大学开源镜像站地址:https://mirrors.shu.edu.cn/zabbix/RHEL7/CentOS7
cat <<EOF > /etc/yum.repos.d/zabbix.repo[zabbix]name=Zabbix Official Repository - \$basearchbaseurl=https://mirrors.aliyun.com/zabbix/zabbix/4.0/rhel/7/\$basearch/enabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591[zabbix-non-supported]name=Zabbix Official Repository non-supported - \$basearchbaseurl=https://mirrors.aliyun.com/zabbix/non-supported/rhel/7/\$basearch/enabled=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIXgpgcheck=1EOF
添加gpgkey
curl https://mirrors.aliyun.com/zabbix/RPM-GPG-KEY-ZABBIX-A14FE591 \-o /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591curl https://mirrors.aliyun.com/zabbix/RPM-GPG-KEY-ZABBIX \-o /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
添加之后即可使用
yum makecache -yyum install zabbix-<...>
Ubuntu 16.04
cat>/etc/apt/sources.list.d/zabbix.list << EOFdeb https://mirrors.aliyun.com/zabbix/zabbix/4.0/ubuntuxenial maindeb-src https://mirrors.aliyun.com/zabbix/zabbix/4.0/ubuntuxenial mainEOF
添加key
curl -o -"https://mirrors.aliyun.com/zabbix/zabbix-official-repo.key"| apt-key add -
更新源,安装相关包
apt-get updateapt-getinstall-y zabbix-<...>