rpm -i http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
install repository
yum install zabbix-agent
Install Zabbix Agent
Press Y twice to confirm
vim /etc/zabbix/zabbix_agentd.conf
Modify the Zabbix Agent configuration file
Change line 97 to
Server=192.168.1.6
(the IP address of the Zabbix server)
Line 138 is modified to
ServerActive=192.168.1.6
(the IP address of the Zabbix server)
Line 149 is modified to
Hostname=localhost.localdomain
(the hostname of the machine, which can be viewed with the hostname command)
firewall-cmd --zone=public --permanent --add-port=10050/tcp
firewall-cmd --reload
open firewall port 10050
systemctl restart zabbix-agent
starts the Zabbix Agent process
systemctl enable zabbix-agent
to set startup