First, the document
Official Document: Https://www.zabbix.com/documentation/2.4/manual/installation/install
: http://www.zabbix.com/download.php
Database Documentation: Https://www.zabbix.com/documentation/2.4/manual/appendix/install/db_scripts
Second, Zabbix installation
1. Unzip the Zabbix
TAR-ZXVF zabbix.2.x.x
2. Create Zabbix users and groups, and add Zabbix to the Zabbix group
Groupadd zabbixuseradd-g Zabbix Zabbix
3. Install lamp environment
Yum install–y httpd httpd-devel mysql mysql-server mysql-devel php php-devel php-mysql php-gd gcc gcc-c++ lrzsz wget net- SNMP Net-snmp-devell php-bcmath php-mbstring php-xmlwriter php-xmlreader
4. Create a Zabbix database
Shell> mysql-uroot-p
Mysql> CREATE database Zabbix character Set UTF8 collate utf8_bin;mysql> grant all privileges on zabbix.* to [email Protected] identified by ';mysql> flush privileges;mysql> quit;
Shell> mysql-uzabbix-p Zabbix < database/mysql/schema.sqlshell> mysql-uzabbix-p Zabbix < database/mysql/im Ages.sqlshell> Mysql-uzabbix-p Zabbix < Database/mysql/data.sql
5.zabbix Installation
./configure--enable-server--enable-agent--with-mysql--enable-ipv6--with-net-snmp--with-libcurl-- With-libxml2make Install
6. Configure Zabbix
Modify Zabbix_server
Vim/usr/local/etc/zabbix_server.conflogfile=/var/log/zabbix/zabbix_server.logdbname=zabbixdbuser= zabbixdbpassword=baywznb2015
Modify Zabbix_agentd
Vim/usr/local/etc/zabbix_agentd.confserver=127.0.0.1serveractive=127.0.0.1hostname=zabbixserver
Copy the Zabbix front-end file to HTTP
Mkdir/var/www/html/zabbixcd/usr/local/src/zabbix-2.4.7/frontends/phpcp–a. /var/www/html/zabbixchwon-r Apache.apache/var/www/html/zabbix
7. Configure PHP
Post_max_size = 16mmax_execution_time = 300max_input_time = 300memory_limit = 128mdate.timezone =Asia/Shanghai
8. Web Interface Installation
Skip here ...
This article is from the "Dolphin Fly" blog, please be sure to keep this source http://7885315.blog.51cto.com/7875315/1729452
Zabbix Installation Tutorials