[root@host ~]# wget https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-agent-5.0.1-1.el7.x86_64.rpm
[root@host ~]# rpm -ivh zabbix-agent-5.0.1-1.el7.x86_64.rpm
[root@host ~]# vim /etc/zabbix/zabbix_agentd.conf
[root@host ~]# grep -Ev "#|$" /etc/zabbix/zabbix_agentd.conf
Server=172.18.1.200 #被动模式 zabbix-server-ip
ListenPort=10050 #监听端口
ServerActive=172.18.1.200 #主动模式 zabbix-server-ip
Hostname=host #客户端的IP或者主机名
Include=/etc/zabbix/zabbix_agentd.d/*.conf
5、启动zabbix-agent:10050
[root@host ~]# systemctl start zabbix-agent
[root@host ~]# systemctl enable zabbix-agent
[root@host ~]# netstat -ntpl | grep 10050