debian 12 zabbix 6.0LTS部署

 数据库要求

数据库版本不对,zabbix-server启动不起来

  1. MySQL/Percona8.0.XRequired if MySQL (or Percona) is used as Zabbix backend database. InnoDB engine is required. We recommend using the MariaDB Connector/C library for building server/proxy.
    MariaDB10.5.00-10.6.XInnoDB engine is required. We recommend using the MariaDB Connector/C library for building server/proxy.
  2. 数据库安装mysql debian apt 装 mysql8-CSDN博客
    mysql  Ver 8.0.35 for Linux on x86_64 (MySQL Community Server - GPL)

     
  3. 部署Zabbix 6.0 LTS - 不羁的罗恩 - 博客园 (cnblogs.com)
  4. Choose your platform

    ZABBIX VERSION

    debian 12 zabbix 6.0LTS
  5. Install and configure Zabbix for your platform
    a. Install Zabbix repository

    Documentation

    # wget https://repo.zabbix.com/zabbix/6.0/debian/pool/main/z/zabbix-release/zabbix-release_6.0-5+debian12_all.deb
    # dpkg -i zabbix-release_6.0-5+debian12_all.deb
    # apt update
    b. Install Zabbix server, frontend, agent
    # apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent
    c. Create initial database

    Documentation

    Make sure you have database server up and running.

    Run the following on your database host.

    # 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;

    On Zabbix server host import initial schema and data. You will be prompted to enter your newly created password.

    # 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;
    d. Configure the database for Zabbix server

    Edit file /etc/zabbix/zabbix_server.conf

    DBPassword=password
    e. Start Zabbix server and agent processes

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

    # systemctl restart zabbix-server zabbix-agent apache2
    # systemctl enable zabbix-server zabbix-agent apache2
    f. Open Zabbix UI web page

    The default URL for Zabbix UI when using Apache web server is http://host/zabbix

  6. Start using Zabbix

windows zabbix agent 安装

zabbix_agent-6.0.25-windows-amd64-openssl

【免费】zabbix-agent-6.0.25-windows-amd64-openssl.msi资源-CSDN文库

C:\Program Files\Zabbix Agent\zabbix_agentd.conf

Server=192.168.1.x

ServerActive=192.168.1.x

  • 10
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Zabbix是一款全功能性的企业级监控软件,支持不同的监控场景,包括网络、服务器、应用、数据库等等。Zabbix 6.0Zabbix软件的最新版本,对性能和功能均有所提升。安装部署Zabbix 6.0需要遵循以下步骤: 1. 安装必备软件 在安装Zabbix 6.0之前,需要先安装必备的软件如Apache、PHP和MySQL等。可以使用apt-get命令或yum命令之类的包管理工具来安装这些软件。 对于基于Debian或Ubuntu的系统,可以使用以下命令安装: sudo apt-get install apache2 php7.4 php7.4-mysql php7.4-gd php7.4-xml php7.4-bcmath php7.4-mbstring mysql-server mysql-client 对于基于CentOS或RHEL的系统,可以使用以下命令安装: sudo yum install httpd php74 php74-mysqlnd php74-gd php74-xml php74-bcmath php74-mbstring mariadb-server mariadb-client 2. 下载Zabbix 6.0 可以到Zabbix官方网站下载Zabbix 6.0安装包。也可以使用wget或curl命令下载安装包。 wget https://cdn.zabbix.com/zabbix/sources/stable/6.0/zabbix-6.0.0.tar.gz 3. 解压安装包 使用以下命令解压下载的安装包: tar -zxvf zabbix-6.0.0.tar.gz 4. 编译和安装Zabbix 进入解压后的目录,使用以下命令编译和安装Zabbix: cd zabbix-6.0.0 ./configure --enable-server --with-mysql --with-net-snmp --with-libcurl --with-libxml2 make install 5. 创建数据库 使用以下命令创建MySQL数据库和用户: mysql -u root -p create database zabbix character set utf8 collate utf8_bin; create user 'zabbix'@'localhost' identified by 'password'; grant all privileges on zabbix.* to 'zabbix'@'localhost'; 6. 导入数据库 使用以下命令导入Zabbix所需的初始数据: cd database/mysql/ mysql -u zabbix -p zabbix < schema.sql mysql -u zabbix -p zabbix < images.sql mysql -u zabbix -p zabbix < data.sql 7. 配置Zabbix服务器 编辑Zabbix服务器的配置文件/etc/zabbix/zabbix_server.conf,配置数据库连接: DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=password 8. 运行Zabbix服务器 使用以下命令启动Zabbix服务器: service zabbix-server start 9. 配置Zabbix Web界面 编辑Zabbix Web界面的配置文件/etc/zabbix/apache.conf,配置Zabbix服务器的地址和端口: php_value date.timezone Asia/Shanghai php_value max_execution_time 300 php_value memory_limit 128M php_value post_max_size 16M php_value upload_max_filesize 2M Alias /zabbix /usr/share/zabbix/ <Directory "/usr/share/zabbix/"> Options FollowSymLinks AllowOverride None Require all granted </Directory> 10. 启动Apache服务 使用以下命令启动Apache服务: service httpd start 这些就是安装部署Zabbix 6.0的基本步骤。安装好之后,访问http://服务器IP地址/zabbix,可以登录Zabbix Web界面并开始配置主机和监控项等。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值