zabbix安装使用过程中的一些报错解决

zabbix admin 108℃ 0评论

centos7 yum安装时报错

#rpm -ivh http://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm 
#yum install zabbix-agent -y
failure: repodata/c8ea82d636ded4febd32728d1eaf99c91d6913c83eb2625cf36fea55848bfffc-primary.sqlite.bz2 from zabbix: [Errno 256] No more mirrors to try.
http://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/repodata/c8ea82d636ded4febd32728d1eaf99c91d6913c83eb2625cf36fea55848bfffc-primary.sqlite.bz2: [Errno 14] curl#18 - "transfer closed with 74 bytes remaining to read"

切国内阿里云源

#mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo (今天居然碰到aliyun源解析有问题,重试了几次就可以了)
#wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo (添加EPEL)
#yum clean all

#yum makecache

 

转载请注明:朋克网 » zabbix安装使用过程中的一些报错解决

喜欢 (1)
发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址