##########RPM包安裝zabbix_Server###################php
===================================================mysql
1:升級zabbix的yum源web
centos5安裝如下源sql
rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/5/x86_64/zabbix-release-2.2-1.el5.noarch.rpm數據庫
centos6安裝如下源apache
rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpmcentos
2:安裝php程序(若是以前安裝過不一樣版本請先卸載)ide
yum install php53post
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),
其後在界面上修改便可
===================================================