首先是apt安装lnmp环境
apt-get install MysqL-server Nginx PHP7.0-fpm
然后下载zabbix源码包,http://www.zabbix.com/download.PHP
解压
tar -zxvf zabbix-3.0.0.tar.gz
编译安装
./configure --enable-server --enable-agent --with-MysqL --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
这里遇到了错误,找不到MysqL_config,发现需要安装额外的东西
apt-get install libMysqLd-dev
继续编译,又遇到了错误:configure: error: LIBXML2 library not found
apt-get install libxml2-dev
又出错啦,configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config
缺啥补啥...继续装
这回只能源码安装
wget http://sourceforge.net/projects/net-snmp/files/net-snmp/5.6.1/net-snmp-5.6.1.tar.gz
apt-get install libperl-dev
重新configure,提示configure: error: Curl library not found
apt-get install libcurl4-gnutls-dev
总算成功了.....开始安装
make install