首页 > 代码库 > Zabbix 安装

Zabbix 安装

LNMP环境配置
Linux,NGINX,PHP,MYSQL

 

PHP 依赖库安装

安装GD库 -让php支持gif,png,jpeg格式

GD库需要以下模块的支持
jpeg,libpng,freetype

wget http://www.ijg.org/files/jpegsrc.v9.tar.gz

tar -zxvf jpegsrc.v9.tar.gz
cd jpeg-9
./configure --prefix=/usr/local/jpeg9/ --enable-shared --enable-static
make & make install

 

libpng

wget http://jaist.dl.sourceforge.net/project/libpng/libpng16/1.6.13/libpng-1.6.13.tar.gz

tar -zxvf libpng-1.6.13.tar.gz
cd libpng-1.6.13
./configure --prefix=/usr/local/libpng
make & make install

freetype

wget http://jaist.dl.sourceforge.net/project/freetype/freetype2/2.5.3/freetype-2.5.3.tar.gz

tar -zxvf freetype-2.5.3.tar.gz
cd freetype-2.5.3.
/configure --prefix=/usr/local/freetypemake & make install

现在需要的三个模块都已经编译好了

正式开始安装GD库

https://bitbucket.org/libgd/gd-libgd/downloads
wget https://bbuseruploads.s3.amazonaws.com/libgd/gd-libgd/downloads/libgd-2.1.0.tar.gz

tar -zxvf libgd-2.1.0.tar.gz
cd libgd-2.1.0
./configure --prefix=/usr/local/gd2 --with-jpeg=/usr/local/jpeg9/ --with-png=/usr/local/libpng/ --with-zlib=/usr/local/zlib-1.2.8/ --with-freetype=/usr/local/freetype/
make & make install

安装curl库

wget http://curl.haxx.se/download/curl-7.37.1.tar.gz

tar -zxvf curl-7.37.1.tar.gz
cd curl-7.37.1
./configure --prefix=/usr/local/curl
make & make install

 

PHP 安装

 

Zabbix 安装