1配置yum源
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
rpm -ivh https://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
2安装zabbix客户端
yum install zabbix-agent -y
3配置配置文件
sed -i.ori ‘s#Server=127.0.0.1#Server=192.168.26.56#‘ /etc/zabbix/zabbix_agentd.conf
sed -i.ori ‘s#ServerActive=127.0.0.1#ServerActive=192.168.26.56#‘ /etc/zabbix/zabbix_agentd.conf
4.重启服务
systemctl restart zabbix-agent.service
systemctl enable zabbix-agent.service
原文地址:http://blog.51cto.com/12909202/2311675
时间: 2024-10-07 06:37:36