##########RPM包安装zabbix_Server###################

===================================================

1:升级zabbix的yum源

centos5安装以下源

rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/5/x86_64/zabbix-release-2.2-1.el5.noarch.rpm

centos6安装以下源

rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm


2:安装php程序(如果之前安装过不同版本请先卸载)

yum install php53


3:安装zabbix所需要用的软件

yum install zabbix-server-mysql zabbix-web-mysql -y


4:安装客户端程序

yum install zabbix-agent -y


5:安装并启动数据库

yum install mysql mysql-server -y

/etc/init.d/mysqld start


6:创建数据(根据需求创建相应的库和用户)

mysql -uroot

mysql> create database zabbix character set utf8 collate utf8_bin;

mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';

mysql> exit


7:复制数据库文件

cd /usr/share/doc/zabbix-server-mysql-2.2.6/create/

# mysql -uroot zabbix < schema.sql

# mysql -uroot zabbix < p_w_picpaths.sql

# mysql -uroot zabbix < data.sql


8:修改zabbix主配置文件(和数据库保持一致)

# vi /etc/zabbix/zabbix_server.conf

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix


9:php要满足如下要求

php_value max_execution_time 300

php_value memory_limit 128M

php_value post_max_size 16M

php_value upload_max_filesize 2M

php_value max_input_time 300

php_value date.timezone Asia/Shanghai


10:安装apache并启动

yum install httpd

/etc/init.d/httpd start


11:启动zabbix服务

/etc/init.d/zabbix-server start

/etc/init.d/zabbix-agent start


12:打开web界面登录

http://192.168.6.8/zabbix

进入安装界面……

登录:

用户名是:Admin

密码是:zabbix


13:修改中文显示

编辑网站目录下的文件  include/locales.inc.php

把false改成true

'zh_CN' => array('name' => _('Chinese (zh_CN)'),  'display' => true),

其后在界面上修改即可

===================================================