How to quickly install and build Zabbix 6.4 in CentOS 2.2 yum
1. Install the official epel package of zabbix
Rpm-ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm
2. Install zabbix
Yum install zabbix-server-mysql zabbix-web-mysql-y
3. Install MySQL and start the service
Yum install mysql-devel mysql-server-y
Service mysqld restart
4. Install zabbix agent
Yum install zabbix-agent-y
5. Create a zabbix mysql database
Mysql-uroot-p
Mysql> create database zabbix;
Mysql> grant all privileges on zabbix. * to zabbix @ localhost identified by 'zabbix ';
Mysql> flush privileges;
6. Import databases and tables
CDS/usr/share/doc/zabbix-server-mysql-2.2.12/create
Mysql-uroot zabbix <schema. SQL // create a table structure
Mysql-uroot zabbix <images. SQL // import related images
Mysql-uroot zabbix <data. SQL // basic initialization data
7. Edit zabbix Data configuration
Vi/etc/zabbix/zabbix_server.conf
DBHost = localhost
DBName = zabbix
DBUser = zabbix
DBPassword = zabbix
8. Enable the zabbix-server process.
/Etc/zabbix/zabbix_server start // enable the zabbix-server Service
9. Modify the php configuration file
Vi/etc/httpd/conf. d/zabbix. conf
<IfModule mod_php5.c>
Php_value max_execution_time 300
Php_value memory_limit 128 M
Php_value post_max_size 16 M
Php_value upload_max_filesize 2 M
Php_value max_input_time 300
Php_value date. timezone Asia/Shanghai // remove the comment and modify the time.
</IfModule>
######## The date. timezone time here must be correct #########
10. Restart the http service.
/Etc/init. d/httpd restart
11. Disable Selinux and enable the firewall port.
Setenforce 0 // temporarily disable
Iptables-I INPUT-p tcp -- dport 80-j ACCEPT
Iptables-I INPUT-p tco -- dport 3306-j ACCEPT
Iptables-I INPUT-p tcp -- dport 3306-j ACCEPT
Iptables-I INPUT-p tcp -- dport 10050: 10051-j ACCEPT
Service iptables save
View iptables
[Root @ localhost create] # iptables-L-n -- line
Chain INPUT (policy ACCEPT)
Num target prot opt source destination
1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts: 10050: 10051
### // If the zabbix port is 10050/10051, use netstat-antp | grep zabbix ###
2 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt: 3306
3 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt: 80
4 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED, ESTABLISHED
5 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
6 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
7 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt: 22
8 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
Num target prot opt source destination
1 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
Num target prot opt source destination
12. Open a browser to complete zabbix Installation
Http: // 172.17.0.8/zabbix // ip + zabbix
######## After zabbix is installed, the default User: admin Password: zabbix #########
13. modify the configuration file.
Vi/usr/share/zabbix/include/locales. inc. php
Function getLocales (){
Return array (
'En _ gb' => array ('name' => _ ('English (en_GB) '), 'display' => true ),
'En _ us' => array ('name' => _ ('English (en_US) '), 'display' => true ),
'Bg _ bg '=> array ('name' => _ ('Bulgarian (bg_BG)'), 'display' => false ),
'Zh _ cn' => array ('name' => _ ('Chinese (zh_CN) '), 'display' => true ), // you only need to change "false" to "true ".
'Zh _ TW '=> array ('name' => _ ('Chinese (zh_TW)'), 'display' => false ),
14. Change the language on the Web page
######### The simple installation of zabbix is here, and Yum is more convenient ###########
CentOS 6.4 compilation, installation, and deployment of Zabbix 2.0
Some Zabbix Tutorials:
Compile and install Zabbix2.4.5 source code in Ubuntu 14.04
Install and deploy the distributed monitoring system Zabbix 2.06
Install and deploy the distributed monitoring system Zabbix 2.06
Install and deploy Zabbix in CentOS 6.3
Zabbix distributed monitoring system practice
Under CentOS 6.3, Zabbix monitors apache server-status
Monitoring MySQL database Parameters Using Zabbix in CentOS 6.3
Install Zabbix 2.0.6 in 64-bit CentOS 6.2
ZABBIX details: click here
ZABBIX: click here
This article permanently updates the link address: