CentOS 8 Guidelines for Installing ZABBIX 4.4

  • 2021-07-06 12:00:34
  • OfStack

zabbix Server Environment Platform

ZABBIX version 4.4

CentOS8

MySQL 8


# rpm -Uvh https://repo.zabbix.com/zabbix/4.4/rhel/8/x86_64/zabbix-release-4.4-1.el8.noarch.rpm

# dnf clean all

b. Install Zabbix, server, Web front end, agent


# dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent

c. Creating Initial Database


# sudo yum -y install @mysql:8.0

Activate the MySQL service:


sudo systemctl status --now mysql

Confirm service status:


sudo systemctl status mysqld

Initialize the MySQL database


mysql_secure_installation

Note, make sure:

Set the database root user password.

Delete anonymous users.

Prohibit root users from logging in remotely.

Delete the test database and access it.

MySQL User root Test Access:


# mysql -uroot -p

password

Create a database


mysql> create database zabbix character set utf8 collate utf8_bin;

Create a user

mysql> create user 'zabbix'@'%' identified by 'zabbix_Password'

Authorized user


mysql> grant all privileges on zabbix.* to 'zabbix'@'%' with grant option;

mysql> flush privileges;

mysql> quit;

Import the initial schema and data, and you will be prompted for the newly created password.


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

d. Configure the database for Zabbix server

Edit the configuration file /etc/zabbix/zabbix_server. conf

DBPassword=password

e. Configure PHP for the Zabbix front end

Edit the configuration file/etc/php-fpm. d/zabbix. conf, uncomment and set the correct time zone

; php_value[date.timezone] = Asia/Shanghai

f. Start the Zabbix, server and agent processes and set them to boot up:


# dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent
0

Your Zabbix server is now installed and running

Configuring the Zabbix front end

Connect to the newly installed Zabbix front end: http://server_ip_or_name/zabbix

Follow the steps in the Zabbix file: Install the front end

You can view it through the user data table

Default account number: Admin

Default password: zabbix

Start using Zabbix

View the Quick Start Guide

Summarize

Above is this site to bring you CetnOS 8 installation ZABBIX 4.4, I hope to help you!


Related articles: