安装zabbix5.0源
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
yum安装
yum install zabbix-agent2 -y
修改配置
vim /etc/zabbix/zabbix_agentd2.conf
Server=
"主机ip"
ServerActive=
"本机ip"
Hostname="本机主机名"
启动服务、添加开机自启
systemctl restart zabbix-agent2
systemctl enable zabbix-agent2