不是第一次装了,但是一直没写文档,今天不忙,记录一下。
一、安装环境
Redhat 6.1 64位
zabbix2.0.2
mysql5.1.52(自带)
apache2.2.15(自带)
php-5.4.6
libmcrypt-2.5.8
二、编译安装
yum -y install mysql.x86_64
yum -y install httpd.x86_64
编译php:
- ./configure --prefix=/usr/local/php --enable-mbstring --enable-ftp --with-gd --with-pear --enable-sockets --enable-gd-native-ttf --with-zlib --enable-sysvsem --enable-sysvshm --with-apxs2=/usr/sbin/apxs --with-iconv-dir=/usr/local --with-xmlrpc --enable-xml --enable-shmop --enable-zip --with-mhash --with-mcrypt --enable-bcmath --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --with-openssl --with-jpeg-dir --with-freetype-dir --with-gettext --with-mysql
- make && make install
编译zabbix:
- ./configure --enable-server --enable-agent --enable-proxy --with-mysql --enable-ipv6 --with-libcurl --with-net-snmp --prefix=/usr/local/zabbix
- make && make install
- useradd zabbix
三、配置zabbix
1、配置mysql
- mysql> create database zabbix character set utf8;
- mysql> use zabbix;
- mysql> source /root/zabbix-2.0.2/database/mysql/schema.sql;
- mysql> source /root/zabbix-2.0.2/database/mysql/data.sql;
- mysql> source /root/zabbix-2.0.2/database/mysql/images.sql;
2、配置web安装
- mkdir /var/www/html/zabbix/
- cp -rfa frontends/php/* /var/www/html/zabbix/
- 修改先关php.ini选项:
- max_execution_time = 300
- max_input_time = 300
- date.timezone =Asia/Shanghai
- 然后重启httpd和mysql
- cp misc/init.d/fedora/core5/zabbix_* /etc/init.d/
- chmod -R 777 /var/www/html/zabbix/conf
然后 一路安装就行了。
阅读(216) | 评论(0) | 转发(0) |