• ZABBIX 6.4官方安装文档


    一、官网地址

    Zabbix:企业级开源监控解决方案

    二、下载

    1.选择您Zabbix服务器的平台

    2. Install and configure Zabbix for your platform

     a. Install Zabbix repository 

    # rpm -Uvh https://repo.zabbix.com/zabbix/6.4/rhel/8/x86_64/zabbix-release-6.4-1.el8.noarch.rpm
    # dnf clean all

    b. Switch DNF module version for PHP

    # dnf module switch-to php:7.4

    c. 安装Zabbix server,Web前端,agent

    # dnf install zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent

    d. 创建初始数据库

    Make sure you have database server up and running.

    在数据库主机上运行以下代码。

    # mysql -uroot -p
    password
    mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
    mysql> create user zabbix@localhost identified by 'password';
    mysql> grant all privileges on zabbix.* to zabbix@localhost;
    mysql> set global log_bin_trust_function_creators = 1;
    mysql> quit;

    导入初始架构和数据,系统将提示您输入新创建的密码。

    # zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix

    Disable log_bin_trust_function_creators option after importing database schema.

    # mysql -uroot -p
    password
    mysql> set global log_bin_trust_function_creators = 0;
    mysql> quit;

    e. 为Zabbix server配置数据库

    编辑配置文件 /etc/zabbix/zabbix_server.conf

    DBPassword=password

    f. 为Zabbix前端配置PHP

    编辑配置文件 /etc/nginx/conf.d/zabbix.conf uncomment and set 'listen' and 'server_name' directives.

    # listen 8080;
    # server_name example.com;

    g. 启动Zabbix server和agent进程

    启动Zabbix server和agent进程,并为它们设置开机自启:

    # systemctl restart zabbix-server zabbix-agent nginx php-fpm
    # systemctl enable zabbix-server zabbix-agent nginx php-fpm

    h. Open Zabbix UI web page

    The URL for Zabbix UI when using Nginx depends on the configuration changes you should have made.

  • 相关阅读:
    临时记录一下
    Linux启动elasticsearch,提示权限不够
    开学要考IB经济怎么办?
    【学习笔记】RabbitMQ-5 消息的可靠性投递 以及示例代码
    go底层TCP网络编程剖析
    华为数通知识点OSPF
    基于Springboot外卖系统19:用户地址+默认收货地址
    Kubernets---配置 Pod 使用投射卷作存储
    Qt应用开发(进阶篇)——线程 QThread
    最近5年133个Java面试问题列表
  • 原文地址:https://blog.csdn.net/weixin_48227918/article/details/132865190