Yum Install Zabbix ...

Source: Internet
Author: User

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

php time zone   fail

Yum Install Zabbix ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.