mysql yum源安装失败_官方yum源安装zabbix失败解决方法

根据官网说明配置的yum源,今天用yum下载Zabbix时报错

yum 软件命令

yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get zabbix-sender

报错如下:

zabbix-get-3.4.15-1.el7.x86_64 FAILED === ] 11 kB/s | 15 MB 00:08:50 ETA

http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-get-3.4.15-1.el7.x86_64.rpm: [Errno 14] curl#18 - "transfer closed with 203863 bytes remaining to read"

Trying other mirror.

zabbix-agent-3.4.15-1.el7.x86_ FAILED === ] 6.2 kB/s | 15 MB 00:15:09 ETA

http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-agent-3.4.15-1.el7.x86_64.rpm: [Errno 14] curl#18 - "transfer closed with 317223 bytes remaining to read"

Trying other mirror.

warning: /var/cache/yum/x86_64/7/zabbix-non-supported/packages/iksemel-1.4-2.el7.centos.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY

Public key for iksemel-1.4-2.el7.centos.x86_64.rpm is not installed

(39/45): iksemel-1.4-2.el7.centos.x86_64.rpm | 49 kB 00:00:24

zabbix-sender-3.4.15-1.el7.x86 FAILED === ] 5.9 kB/s | 15 MB 00:15:49 ETA

http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-sender-3.4.15-1.el7.x86_64.rpm: [Errno 14] curl#18 - "transfer closed with 215639 bytes remaining to read"

Trying other mirror.

zabbix-server-mysql-3.4.15-1.e FAILED === ] 1.3 kB/s | 15 MB 01:09:44 ETA

http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-server-mysql-3.4.15-1.el7.x86_64.rpm: [Errno 14] curl#18 - "transfer closed with 2021601 bytes remaining to read"

Trying other mirror.

zabbix-web-3.4.15-1.el7.noarch FAILED === ] 767 B/s | 15 MB 02:03:40 ETA

http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-web-3.4.15-1.el7.noarch.rpm: [Errno 14] curl#18 - "transfer closed with 2681689 bytes remaining to read"

Trying other mirror.

warning: /var/cache/yum/x86_64/7/zabbix/packages/zabbix-web-mysql-3.4.15-1.el7.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY

Public key for zabbix-web-mysql-3.4.15-1.el7.noarch.rpm is not installed

(40/45): zabbix-web-mysql-3.4.15-1.el7.noarch.rpm | 7.2 kB 00:00:03

Error downloading packages:

zabbix-sender-3.4.15-1.el7.x86_64: [Errno 256] No more mirrors to try.

zabbix-web-3.4.15-1.el7.noarch: [Errno 256] No more mirrors to try.

zabbix-server-mysql-3.4.15-1.el7.x86_64: [Errno 256] No more mirrors to try.

zabbix-get-3.4.15-1.el7.x86_64: [Errno 256] No more mirrors to try.

zabbix-agent-3.4.15-1.el7.x86_64: [Errno 256] No more mirrors to try.

查看yum源文件

[root@DD yum.repos.d]# ls

CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo zabbix.repo

CentOS-CR.repo CentOS-fasttrack.repo CentOS-Sources.repo epel.repo

cat zabbix.repo[root@DD yum.repos.d]# cat zabbix.repo

[zabbix]

name=Zabbix Official Repository - $basearch

baseurl=http://repo.zabbix.com/zabbix/3.4/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=http://repo.zabbix.com/non-supported/rhel/7/$basearch/

enabled=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX

gpgcheck=1

解决方法

换成阿里云的yum源

[root@DD yum.repos.d]# cat zabbix.repo

[zabbix]

name=Zabbix Official Repository - $basearch

#baseurl=http://repo.zabbix.com/zabbix/3.4/rhel/7/$basearch/

baseurl=https://mirrors.aliyun.com/zabbix/zabbix/3.4/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=http://repo.zabbix.com/non-supported/rhel/7/$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

yum clean all

yum makecahe

安装成功

yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent

……

Installed:

zabbix-agent.x86_64 0:3.4.15-1.el7 zabbix-get.x86_64 0:3.4.15-1.el7 zabbix-sender.x86_64 0:3.4.15-1.el7

zabbix-server-mysql.x86_64 0:3.4.15-1.el7 zabbix-web-mysql.noarch 0:3.4.15-1.el7

验证

[root@DD yum.repos.d]# rpm -qa install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get zabbix-sender

zabbix-server-mysql-3.4.15-1.el7.x86_64

zabbix-web-mysql-3.4.15-1.el7.noarch

zabbix-agent-3.4.15-1.el7.x86_64

zabbix-sender-3.4.15-1.el7.x86_64

zabbix-get-3.4.15-1.el7.x86_64

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值