zoukankan      html  css  js  c++  java
  • Zabbix Server 安装

    环境LNMP(Linux + Nginx + MySQL + PHP)

    系统环境:Centos 7

    数据库:MySQL 5.6

    WEB: Nginx 稳定版

    PHP:7.2

    LNMP 环境采用https://www.appnode.com/install 提供的安装环境一键完成

    image

    INSTALL_AGENT=1 INSTALL_APPS=sitemgr INSTALL_PKGS='nginx-stable,php72,mysql56' bash -c "$(curl -sS http://dl.appnode.com/install.sh)"

    Zabbix 安装

    技术支持:https://www.zabbix.com/download

    a. Install Repository with MySQL database

    # rpm -i http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm

    b. Install Zabbix server, frontend, agent

    # yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent

    c. Create initial database

    # mysql -uroot -p
    # password
    mysql> create database zabbix character set utf8 collate utf8_bin;
    mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
    mysql> quit;

    Import initial schema and data. You will be prompted to enter your newly created password.

    # zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

    d. Configure the database for Zabbix server

    # vi /etc/zabbix/zabbix_server.conf
    DBHost=localhost
    DBName=zabbix
    DBUser=zabbix
    DBPassword=password

    e. Start Zabbix server and agent processes

    Start Zabbix server and agent processes and make it start at system boot:

    # systemctl start zabbix-server zabbix-agent httpd
    # systemctl enable zabbix-server zabbix-agent httpd

    f. Configure PHP for Zabbix frontend

    Apache configuration file for Zabbix frontend is located in /etc/httpd/conf.d/zabbix.conf. Some PHP settings are already configured. But it's necessary to uncomment the “date.timezone” setting and set the right timezone for you.

    php_value max_execution_time 300
    php_value memory_limit 128M
    php_value post_max_size 16M
    php_value upload_max_filesize 2M
    php_value max_input_time 300
    php_value always_populate_raw_post_data -1
    # php_value date.timezone Europe/Riga

    Now your Zabbix server is up and running!


    Configure Zabbix frontend

    Connect to your newly installed Zabbix frontend: http://server_ip_or_name/zabbix
    Follow steps described in Zabbix documentation: Installing frontend

    Start using Zabbix

    See Quickstart guide

  • 相关阅读:
    Jzoj3895 数字对
    Jzoj3895 数字对
    Jzoj3894 改造二叉树
    Jzoj3894 改造二叉树
    Jzoj3883 线段树
    Jzoj3883 线段树
    Jzoj3882 近邻
    Jzoj3882 近邻
    第三十一天 how can I 坚持
    第三十天 how can I 坚持
  • 原文地址:https://www.cnblogs.com/wudtime/p/8528764.html
Copyright © 2011-2022 走看看