rpm -i https://repo.zabbix.com/zabbix/4.2/rhel/6/x86_64/zabbix-release-4.2-2.el6.noarch.rpm
能够到https://repo.zabbix.com/zabbix找到对应的版本ui
yum install zabbix-agent -y
出现Error: Package: zabbix-agent-4.2.6-1.el6.x86_64 (zabbix)
Requires: libpcre.so.0()(64bit)的错误code
找到vi /etc/yum.repos.d/zabbix.repo将里面的rhel/6改为rhel/7,保存server
yum install zabbix-agent -y
修改配置文件it
vi /etc/zabbix/zabbix_agentd.conf
Server=127.0.0.1 #Server端的IP地址。 ServerActive=127.0.0.1 # zabbix server 端口10051能够默认。 Hostname=ZabbixServer #必须与zabbix server端建立主机时候输入的zabbix agent端的host name一致。
启动配置
systemctl enable zabbix-agent.service 开机自启动 systemctl start zabbix-agent.service 启动服务