zabbix 6.0 官方文档


    1. Choose your platform

       
      ZABBIX VERSION
       
      OS DISTRIBUTION
       
      OS VERSION
       
      DATABASE 
       
      WEB SERVER
      Release Notes 6.0
    2. Install and configure Zabbix server for your platform

      a. Install Zabbix repository
      Documentation # rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-1.el8.noarch.rpm
      # dnf clean all
      b. Install Zabbix server, frontend, agent
      # dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy 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> quit;

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

      # zcat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix
      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 httpd php-fpm
      # systemctl enable zabbix-server zabbix-agent httpd php-fpm
      f. Configure Zabbix frontend

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

相关