1、首先从本站下载软件压缩包文件,解压到任意位置,可看到两个文件夹,如下图所示:conf目录存放是agent配置文件bin文件存放windows下32位和64位安装程序

2、找到conf下的配置文件zabbix_agentd.win.conf ,修改LogFile、Server、ServerActive、Hostname这四个参数。具体配置如下:LogFile=c:\zabbix_agentd.logServer=192.168.7.50Hostname=downloadServerActive=192.168.7.50 #zabbix server地址①logfile是zabbix日志存放地址,Server 是zabbix服务端ip地址,Hostname是本机机器名

②server=192.168.7.50192.168.7.50是zabbix -server的服务器地址

③server-active地址是主动通信服务器地址,该地址也是需要填写zabbix server的地址192.168.7.50是zabbix -server的服务器地址

④hostname我们需要填写zabbix agent本地的hostname信息

3、配置好后,开始安装zabbix-agent(其实就是将zabbix-agent添加到windows服务中),在windows控制台下执行以下命令c:\bin\win64\zabbix_agentd.exe -c c:\conf\zabbix_agentd.win.conf -i

4、启动命令如下:c:\bin\win64\zabbix_agentd.exe -c c:\conf\zabbix_agentd.win.conf -s

5、我们通过查看端口,zabbix-agent已经正常启动

6、通过打开服务控制台也可以看见,zabbix-agent已经添加到了服务列表中,如下图所示:
