1、关闭防火墙
setenforce 0 #关闭SELinux
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config #设置永久关闭SELinux
systemctl stop firewalld.service #关闭防火墙
systemctl disable firewalld.service #设置永久关闭防火墙
2、安装agent
rpm -Uvh https://repo.zabbix.com/zabbix/6.4/rhel/8/x86_64/zabbix-release-6.4-1.el8.noarch.rpm #获取zabbix的源
dnf install -y zabbix-agent
3、修改agent参数
vi /etc/zabbix/zabbix_agentd.conf
Server=192.168.34.107 #zabbix-server的ip
ServerActive=192.168.34.107 #zabbix-server的ip
Hostname=192.168.34.109 #本机ip
4、启动agent
systemctl start zabbix-agent
sys