CentOS 8.0.1905 installs ZABBIX 4.4 version (verified)

CentOS 8.0.1905 installs ZABBIX 4.4 version (verified)

Zabbix Server Environment Platform

Version: ZABBIX version 4.4
System: CentOS 8.0.1905
Database: Mysql-server-8.0.17

Install CentOS8 yum repository

#cd /etc/yum.repos.d/
#rm -f CentO*.repo
#curl -o CentOS-Base.repo https://raw.githubusercontent.com/hackyoMa/docker-centos/8/CentOS-Base.repo
#yum makecache

Install zabbix yum repository

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

Install Zabbix server, web frontend, and agent

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

Creating the 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 MySQL Database

mysql_secure_installation

Note, please ensure that:

Set the database root user password. Delete anonymous users. Disable remote login for the root user. Delete the test database and access it.

MySQL user root test access permissions:

# mysql -uroot -p

password

Create a database

mysql> create database zabbix character set utf8 collate utf8_bin;

Create 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 your newly created password.

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

Configure database for Zabbix server

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

DBPassword=password

Configure PHP for Zabbix frontend

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

; php_value[date.timezone] = Asia/Shanghai

Start the Zabbix server and agent processes and set them to start automatically at boot:

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

Now your Zabbix server is installed and running

Configure Zabbix frontend

Reference: https://www.zabbix.com/documentation/4.4/manual/installation/install#installing_frontend

Connect to the newly installed Zabbix frontend: http://server_ip_or_name/zabbix

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

You can view it through the user data table

Default account: AdminDefault password: zabbix

Summary: During the execution of zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

Encountered the following problem Error 1046 (3D000) No database selected

The above is the introduction of CentOS 8.0.1905 installation of ZABBIX4.4. I hope it will be helpful to everyone. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • Super detailed steps to install zabbix3.0 on centos7
  • Centos7.4 zabbix3.4.7 source code installation method and steps
  • How to install and deploy the latest version of Zabbix 3.4 on Centos 7.3 (picture and text)
  • Detailed explanation of Centos7.2 compilation and installation of zabbix3.2 (detailed steps)
  • Detailed installation steps of Zabbix3.4 under Centos 7
  • Detailed tutorial on installing Zabbix 3.2 on CentOS 7.2

<<:  The implementation process of extracting oracle data to mysql database

>>:  Axios project with 77.9K GitHub repository: What are the things worth learning?

Recommend

Simple method to install mysql under linux

When searching online for methods to install MySQ...

Detailed explanation of the solution to the nginx panic problem

Regarding the nginx panic problem, we first need ...

Teach you how to use docker-maven-plugin to automate deployment

1. Introduction to docker-maven-plugin In our con...

JavaScript css3 to implement simple video barrage function

This article attempts to write a demo to simulate...

Tomcat uses Log4j to output catalina.out log

Tomcat's default log uses java.util.logging, ...

The 6 Most Effective Ways to Write HTML and CSS

This article shares the 6 most effective methods,...

Mysql Sql statement exercises (50 questions)

Table name and fields –1. Student List Student (s...

Record the steps of using mqtt server to realize instant communication in vue

MQTT Protocol MQTT (Message Queuing Telemetry Tra...

Solution to VMware virtual machine no network

Table of contents 1. Problem Description 2. Probl...

HTTPS Principles Explained

As the cost of building HTTPS websites decreases,...

Details on using JS array methods some, every and find

Table of contents 1. some 2. every 3. find 1. som...

Nginx domain forwarding usage scenario code example

Scenario 1: Due to server restrictions, only one ...

MySQL 5.7.21 installation and configuration tutorial under Window10

This article records the installation and configu...

How to use Dockerfile to build images in Docker

Build the image Earlier we used various images fo...