标签:yum install sed 配置yum源 置配 agent 安装方法 epel .com
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
yum install zabbix-agent -y
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
systemctl restart zabbix-agent.service
systemctl enable zabbix-agent.service
标签:yum install sed 配置yum源 置配 agent 安装方法 epel .com
原文地址:http://blog.51cto.com/12909202/2311675