前端之家收集整理的这篇文章主要介绍了
ubuntu上安装zabbix时遇到的问题,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_
502_0@首先是apt安装lnmp环境
apt-get install MysqL-server Nginx PHP7.0-fpm
@H_
502_0@然后下载zabbix源码包,http://www.zabbix.com/download.
PHP
@H_
502_0@解压
tar -zxvf zabbix-3.0.0.tar.gz
@H_
502_0@编译安装
./configure --enable-server --enable-agent --with-MysqL --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
@H_
502_0@这里遇到了
错误,找不到
MysqL_config,发现需要安装额外的东西
apt-get install libMysqLd-dev
@H_
502_0@继续编译,又遇到了
错误:configure: error: LIBXML2 library not found
apt-get install libxml2-dev
@H_
502_0@又出错啦,configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config
@H_
502_0@缺啥补啥...继续装
@H_
502_0@这回只能源码安装
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
@H_
502_0@重新configure,
提示configure: error: Curl library not found
apt-get install libcurl4-gnutls-dev
@H_
502_0@总算成功了.....开始安装
make install