@sasaki
2016-04-23T00:39:18.000000Z
字数 1795
阅读 2132
Pricatice
@Title Zabbix——集群监控工具
@Version v1.0
@Timestamp 2015-12-15 17:49
@Author Nicholas
@Mail redskirt@outlook.com
[root@master tmp]# cd /usr/zabbix-2.2.11/
[root@master zabbix-2.2.11]# ls
aclocal.m4 compile configure.ac include Makefile.in README
AUTHORS conf COPYING INSTALL man src
bin config.guess database install-sh misc upgrades
build config.sub depcomp m4 missing
ChangeLog configure frontends Makefile.am NEWS
# 为zabbix建立数据库
mysql> create database zabbix default charset utf8;
Query OK, 1 row affected (0.00 sec)
# 导入zabbix数据
[root@master zabbix-2.2.11]# mysql -uroot -proot zabbix < database/mysql/schema.sql
[root@master zabbix-2.2.11]# mysql -uroot -proot zabbix < database/mysql/images.sql
# 配置zabbix
[root@master conf]# cp zabbix_server.conf zabbix_server.conf_
[root@master conf]# vim zabbix_server.conf
DBName=zabbix
DBUser=root
DBPassword=root
DBPort=3306
# 安装
[root@master zabbix-2.2.11]# ./configure --prefix=/usr/local/php-5.5.7 \
--with-config-file-path=/usr/local/php-5.5.7/etc --with-bz2 --with-curl \
--enable-ftp --enable-sockets --disable-ipv6 --with-gd \
--with-jpeg-dir=/usr/local --with-png-dir=/usr/local \
--with-freetype-dir=/usr/local --enable-gd-native-ttf \
--with-iconv-dir=/usr/local --enable-mbstring --enable-calendar \
--with-gettext --with-libxml-dir=/usr/local --with-zlib \
--with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-mysql=mysqlnd \
--enable-dom --enable-xml --enable-fpm --with-libdir=lib64 --enable-bcmath
...
Configuration:
Detected OS: linux-gnu
Install path: /usr/local/php-5.5.7
Compilation arch: linux
Compiler: gcc
Compiler flags: -g -O2
Enable server: no
Enable proxy: no
Enable agent: no
Enable Java gateway: no
LDAP support: no
IPv6 support: no
***********************************************************
* Now run 'make install' *
* *
* Thank you for using Zabbix! *
* <http://www.zabbix.com> *
***********************************************************
[root@master zabbix-2.2.11]# make && make install