# 离线安装zabbix agent端
安装包链接 (提取码:1314)
代码语言:javascript复制rpm -ivhU zabbix-agent-5.0.3-1.el7.x86_64.rpm
- 安装后配置文件路径
/etc/zabbix/zabbix_agentd.conf
内容如下:
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=192.168.0.66 //server端ip
ServerActive=192.168.0.66 //同上
Hostname=Zabbix server //server配置的Hostname
Include=/etc/zabbix/zabbix_agentd.d/*.conf
- 添加开机自启
systemctl start zabbix-agent
systemctl enable zabbix-agent