下载安装源
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
yum clean all
安装zabbix服务
yum install zabbix-agent
修改agent配置文件,指向zabbix-server的ip地址
vi /etc/zabbix/zabbix_agentd.conf
Server=127.0.0.1 #修改主机的IP
systemctl start zabbix-agent
systemctl enable zabbix-agent
添加主机
Zabbix(web管理界面)配置——>主机——>创建主机