Environment: centos6_64 MySQL environment. disabling Iptable SELinux
To install the base package:
Need to install lamp. Install it yourself ... No, please. LAMP
RPM-IVH http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
Yum Install Zabbix-server-mysql zabbix-web-mysql-y
Yum Install Zabbix-agent-y
MySQL configuration:
shell> mysql-uroot-p<password>mysql > CREATE database Zabbix character Set UTF8 collate utf8_bin;mysql > Grant all privileges on zabbix.* to [EMAIL&N Bsp;protected] identified by <password> " ;mysql > quit;
shell> Cd/usr/share/doc/zabbix-server-mysql-2.4.0/createshell > mysql-uzabbix-p<password> Zabbix < schema.sql# stop here if is creating database for Zabbix Proxyshell > Mysql-uzabbix-p<password> Zabbix < images.sqlshell > Mysql-uzabbix-p<password> Zabbix < Data.sql
The first line of password is the root user, if the root user does not have a password can not add the-p parameter
The third line of password is the password of the Zabbix user and the password that you need to connect to the database after you zabbix the configuration file
The four-line version may change into the corresponding version of the directory you downloaded
To modify the Zabbix configuration file:
vi /etc/zabbix/zabbix_server.confdbhost=localhostdbname=Zabbixdbuser= Zabbixdbpassword=zabbix
Dbsocket=/var/lib/mysql/mysql.sock
Find the appropriate item to modify, and to correspond with your own environment,
Dbhost data address, dbname database name Dbuser connect mysql username dbpassword password, dbsocket mysql sock file.
Modify the next PHP configuration, or the error will be behind
vi /etc/httpd/conf.d/zabbix.conf
date. TimeZone europe/Riga line behind add a line below
date. TimeZone Asia/shanghai
Start the service:
Service zabbix-Server startservice httpd Restart service Zabbix-agent start
Web Interface Installation
Http://IP/zabbix
MySQL configuration, corresponding changes, test under
Next step
Default User name Admin
Default password Zabbix
Prompt error:
PHP Time zone Unknown Fail
Modifying a configuration file/etc/httpd/conf.d/zabbix.conf
in #php_value date. TimeZone europe/Riga line and the bottom row php_value date. TimeZone Asia/shanghai
Restart Start httpd service: Services httpd restart
Yum Install Zabbix ...