Centos Install Zabbix

Source: Internet
Author: User

  1. Install PHP, MySQL
    Yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml mysql-server
    To change your PHP settings:
    Sed-i "s/;d ate.timezone =/date.timezone = asia\/shanghai/g"/etc/php.ini
    Sed-i "S#max_execution_time = 30#max_execution_time = 300#g"/etc/php.ini
    Sed-i "s#post_max_size = 8m#post_max_size = 32m#g"/etc/php.ini
    Sed-i "S#max_input_time = 60#max_input_time = 300#g"/etc/php.ini
    Sed-i "S#memory_limit = 128m#memory_limit = 128m#g"/etc/php.ini
    Sed-i "/;mbstring.func_overload = 0/ambstring.func_overload = 2\n"/etc/php.ini
  2. Installing Zabbix
    RPM-UVH http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm
    Yum-y Install Zabbix-server-mysql zabbix-web-mysql zabbix-agent Zabbix-java-gateway
  3. Installing Nginx
    Yum-y Install epel-release
    Yum-y Install Nginx
  4. Initializing Mysql Database
    # mysql-u Root-p
    # mysql> CREATE DATABASE Zabbix CHARACTER SET UTF8;
    # mysql> GRANT all privileges in zabbix.* to ' Zabbix ' @ ' localhost ' identified by ' Secret_password ';
    # mysql> FLUSH privileges;
    # mysql> quit
    Importing data structures of Zabbix
    # mysql-u Zabbix-p Zabbix </usr/share/doc/zabbix-server-mysql-2.2.9/create/schema.sql
    # mysql-u Zabbix-p Zabbix </usr/share/doc/zabbix-server-mysql-2.2.9/create/images.sql
    # mysql-u Zabbix-p Zabbix </usr/share/doc/zabbix-server-mysql-2.2.9/create/data.sql
  5. Modify the Zabbix configuration file so that it can access the database
    # vi/etc/zabbix/zabbix_server.conf
    Dbhost=localhost
    Dbname=zabbix
    Dbuser=zabbix
    Dbpassword=zabbix
  6. Restart Zabbix
    Service Zabbix-server Start
    Site profile Default path:
    /usr/share/zabbix
  7. Set Nginx to access Zabbix
    Cd/usr/share/nginx/html
    Ln-s/usr/share/zabbix Zabbix
    Remove soft links rm-rf Zabbix Note not rm-rf zabbix/

  8. Official website: https://www.zabbix.com/documentation/2.4/manual/installation/install_from_packages

Centos Install Zabbix

Related Article

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.