yum remove -y zabbix6.0-agent yum install -y https://repo.zabbix.com/zabbix/7.0/rhel/7/x86_64/zabbix-agent-7.0.0-release1.el7.x86_64.rpm systemctl enable zabbix-agent sed -i "s#/var/log/zabbix/#/www/#g" /etc/zabbix/zabbix_agentd.conf sed -i "s/# ListenPort=10050/ListenPort=6667/g" /etc/zabbix/zabbix_agentd.conf sed -i "s/Server=127.0.0.1/Server=218.2.0.6/g" /etc/zabbix/zabbix_agentd.conf sed -i "s/ServerActive=127.0.0.1/ServerActive=218.2.0.6:6667/g" /etc/zabbix/zabbix_agentd.conf touch /www/zabbix_agentd.log chown zabbix:zabbix /www/zabbix_agentd.log chmod 777 /www/zabbix_agentd.log systemctl start zabbix-agent systemctl status zabbix-agent systemctl restart zabbix-agent