1.环境准备
zabbix server 192.168.1.215
zabbix proxy 192.168.1.202
zabbix-agent 192.168.1.172
更改主机名
hostnamectl set-hostname *
服务器关闭防火墙和SELinux
关闭防火墙
systemctl disable firewalld.service
或开放端口
firewall-cmd --zone=public --add-port=10050/tcp --permanent
firewall-cmd --zone=public --add-port=10051/tcp --permanent
firewall-cmd --reload
关闭SELinux(这个不关掉会连不上server搞了好几天的坑)
vim /etc/selinux/config
SELINUX=disabled
修改host文件
vim /etc/hosts
添加相关服务器的主机名和IP地址
2.安装zabbix proxy
安装 zabbix 仓库源
rpm -Uvh https://repo.zabbix.com/zabbix/7.0/alma/9/x86_64/zabbix-release-7.0-5.el9.noarch.rpm
dnf clean all
安装zabbix proxy
dnf install zabbix-proxy-mysql zabbix-sql-scripts zabbix-selinux-policy
安装数据库
yum -y install mariadb-server mariadb 安装
#yum remove mariadb-server mariadb 卸载
sys