本文基于centos7.5
一、服务器端安装配置
1、基础:配置网络,内存>=4G(最好),关闭防火墙
[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:72:90:F5
inet addr:192.168.137.22 Bcast:192.168.137.255 Mask:255.255.255.0
[root@localhost ~]# free -m
total used free shared buffers cached
Mem: 3028 197 2830 0 16 50
[root@localhost ~]# getenforce
Disabled
[root@localhost ~]# service iptables status
表格:filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
2、安装zabbix服务与相关配置
[root@localhost ~]# rpm -Uvh https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
Retrieving https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/6/x86_64/zabbix-release-5.0-1.el6.noarch.rpm
warning: /var/tmp/rpm-tmp.YlRiMf: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
Preparing... ########################################### [100%]
1:zabbix-release ########################################### [100%]
[root@localhost ~]# ll /etc/yum.repos.d/
-rw-r--r-- 1 root root 859 5月 11 2020 zabbix.repo
# 更换zabbix的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
[root@localhost ~]# yum makecache
[root@localhost ~]# yum -y install