Zabbix Server and Client Installation

Source: Internet
Author: User
Tags aliyun

Environment preparation

CentOS 6.x

    • SELinux off

    • Firewall off

    • Access to external network

Zabbix installation of the service side

Reference Zabbix official Installation documentation

Installation Combat
  1. Install Epel source (for no need)

    Wget-o/etc/yum.repos.d/epel.repo Http://mirrors.aliyun.com/repo/epel-6.repo
  2. Installing the MySQL server

    Yum Install Mysql-server
  3. Official source for installing Zabbix

    RPM-IVH http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
  4. Installing the master side of the Zabbix

    Yum Install Zabbix-server-mysql Zabbix-web-mysql
  5. Add MySQL and Zabbix's master side to boot from

    Chkconfig httpd onchkconfig mysqld onchkconfig zabbix-server on
  6. import Zabbix required libraries into the database

    1.  start the MySQL server    /etc/init.d mysqld start2.  create a database where the Zabbix data resides and authorize a user to manage the library    mysql -uroot -e  "Create database zabbix character set  utf8 collate utf8_bin; "    mysql -uroot -e  "Grant all privileges on zabbix.* to  [email protected] identified by  ' Zabbix '; " 3.  Import Zabbix required data files into the Zabbix database    cd /usr/share/doc/zabbix-server-mysql-2.4.7/create/    mysql -uroot zabbix < schema.sql   mysql -uroot  zabbix < images.sql   mysql -uroot zabbix < data.sql 
  7. Edit the master configuration file for Zabbix

    # vi/etc/zabbix/zabbix_server.conf

    Dbhost=localhostdbname=zabbixdbuser=zabbixdbpassword=zabbix

    Modify the item to the above

  8. Start the Zabbix service

    Service Zabbix-server Start
  9. edit httpd profile so Zabbix service can be successfully appache service proxy

    # vi/etc/httpd/conf.d/zabbix.conf

    php_value max_execution_time 300php_value memory_limit 128mphp_value post_max_size  16Mphp_value upload_max_filesize 2Mphp_value max_input_time 300php_value  Date.timezone asia/shanghai 

  10. Start the Appache service

    /ETC/INIT.D/HTTPD start
  11. Browser Input URL Address

    Http://10.0.0.106/zabbix

    If you enter a URL, the Zabbix installation interface indicates that the Zabbix server installation is complete

Installation of the Zabbix client
  1. Install Epel source (for no need)

    Wget-o/etc/yum.repos.d/epel.repo Http://mirrors.aliyun.com/repo/epel-6.repo
  2. Official source for installing Zabbix

    RPM-IVH http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
  3. Installing the master side of the Zabbix

    Yum Install Zabbix-server-mysql Zabbix-web-mysql
  4. Add Zabbix client to boot

    Chkconfig zabbix-agent on
  5. Start the Zabbix client

    /etc/init.d/zabbix-agent start


Zabbix Server and Client Installation

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.