一、源码包下载地址:https://www.zabbix.com/download_sourceshtml
二、下载完后上传在任意目录用root用户建立如下脚本server_ip为服务端ip而后执行。python
1
2
3
4
5
6
7
8
9
|
groupadd zabbix
useradd
-
g zabbix zabbix
yum install
-
y gcc
*
pcre
*
tar
-
xf zabbix
-
4.0
.
3.tar
.gz
cd zabbix
-
4.0
.
3
.
/
configure
-
-
enable
-
agent
make install
sed
-
i
's/127.0.0.1/10.90.6.86/g'
/
usr
/
local
/
etc
/
zabbix_agentd.conf
/
usr
/
local
/
sbin
/
zabbix_agentd
|
官方安装文档:https://www.zabbix.com/documentation/4.0/manual/installation/installpost