Zabbix 国内源使用(2020.9.23亲测可用)
RHEL7/CentOS7
添加源
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
添加 gpgkey
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
添加之后即可使用
yum makecache -y
yum install zabbix-<...>
Ubuntu 16.04
添加源
cat > /etc/apt/sources.list.d/zabbix.list << EOF deb https://mirrors.aliyun.com/zabbix/zabbix/4.0/ubuntu xenial main deb-src https://mirrors.aliyun.com/zabbix/zabbix/4.0/ubuntu xenial main EOF
添加 key
curl -o - "https://mirrors.aliyun.com/zabbix/zabbix-official-repo.key" | apt-key add -
更新源,安装相关包
apt-get update
apt-get install -y zabbix-<...>