zabbix 官网地址 http://www.zabbix.com/download.php
zabbix 下载地址 http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/3.0.1/zabbix-3.0.1.tar.gz/downloadzabbix 官方手册 https://www.zabbix.com/documentation/3.0/manual一: 安装必须的软件包
yum install mysql-dev gcc net-snmp-devel curl-devel perl-DBI php-gd php-mysql php-bcmath php-mbstring php-xm -y
安装数据库
mysql如果需要源码安装请下载自己编译安装,这里不作说明,如果没有需要直接yum安装,yum install mysql mysql-server -y
二:下载 apr-util-1.5.3.tar.gz apr-1.5.1.tar.gz pcre.tar.gz 编译安装,下载apache 编译安装
apr
./configure --prefix=/usr/local/apr-iconv --with-apr=/usr/local/apr
make && make install
apr-util
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr --with-apr-iconv=/usr/local/apr-iconv/bin/apriconv
make && make install
pcre
./configure --prefix=/usr/local/pcre
make && make install
apache
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
make && make install
三:下载php 特别注明 zabbix3.0所需php版本必须在5.4以上,官网有说明。
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql --with-mysqli=mysqlnd --with-gettext --with-php-config=/usr/local/php/bin/php-config --enable-sockets --with-php-config=/usr/local/php/bin/php-config --with-php-config=/usr/local/php/bin/php-config --with-png-dir --with-freetype-dir --with-jpeg-dir --with-gd --with-php-config=/usr/local/php/bin/php-config
make && make install
php 配置文件参数
date.timezone = Asia/Shanghai
post_max_size = 16M
max_execution_time = 300
max_input_time = 300
extension=bcmath.so
extension=sockets.so
extension=mbstring.so
extension=gd.so
四:zabbix
mysql -uroot -pxiaobai zabbix < schema.sql
mysql -uroot -pxiaobai zabbix < p_w_picpaths.sql
mysql -uroot -pxiaobai zabbix < data.sql
./configure --prefix=/usr/local/zabbix --with-mysql --with-net-snmp --with-libcurl --enable-server --enable-agent --enable-proxy
本文章不作详细安装说明,仅为个人笔记,记录一下安装参数,不喜勿喷。。