安装相关依赖包:
[root@zabbixserver lnmp_soft]# yum -y install net-snmp-devel
> curl-devel
[root@zabbixserver lnmp_soft]# yum -y install libevent-devel-2.0.21-4.el7.x86_64.rpm
[root@zabbixserver ~]# yum -y install php-gd php-xml
[root@zabbixserver ~]# yum install php-bcmath-5.4.16-42.el7.x86_64.rpm
[root@zabbixserver ~]# yum install php-mbstring-5.4.16-42.el7.x86_64.rpm
[root@localhost lnmp]# tar zabbix-4.2.7.tar.gz
[root@localhost lnmp]# cd zabbix-4.2.7
源码安装:
[root@localhost lnmp]#./configure --enable-server \
--enable-proxy --enable-agent --with-mysql=/usr/bin/mysql_config \
--with-net-snmp --with-libcurl
注释说明文件
// --enable-server安装部署zabbix服务器端软件
// --enable-agent安装部署zabbix被监控端软件
// --enable-proxy安装部署zabbix代理相关软件
// --with-mysql配置mysql_config路径
// --with-net-snmp允许zabbix通过snmp协议监控其他设备
// --with-libcurl安装相关curl库文件,这样zabbix就可以通过curl连接http等服务,测试被监控主机服务的状态
[root@localhost lnmp] make && make instal