zabbix 5.0搭建
一、环境配置
主机 | IP地址 | 配置 |
---|---|---|
zabbix server | 192.168.200.130 | 2vcpu/4G内存/40G硬盘 |
二、安装准备
注:关闭防火墙,
[root@server ~]# systemctl stop firewalld
[root@server ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@server ~]# setenforce 0
[root@server ~]# iptables -F
[root@server ~]# iptables -X
[root@server ~]# iptables -Z
[root@server ~]# iptables-save
# Generated by iptables-save v1.4.21 on Wed Nov 17 10:30:58 2021
*filter
:INPUT ACCEPT [20:1168]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [11:916]
COMMIT
# Completed on Wed Nov 17 10:30:58 2021
下载zabbix
[root@server ~]# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
获取https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
警告:/var/tmp/rpm-tmp.2Es3xS: 头V4 RSA/SHA512 Signature, 密钥 ID a14fe591: NOKEY
准备中... ################################# [100%]
软件包 zabbix-release-5.0-1.el7.noarch 已经安装
为了提速因将官网国外的yum源改成国内的
[root@localhost ~]# sed -i 's#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' /etc/yum.repos.d/zabbix.repo
[root@localhost ~]# yum clean all