Zabbix Server Environment Platform Version: ZABBIX version 4.4 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 Activate the MySQL service: Confirm service status: Initialize MySQL Database 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: 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 Configure PHP for Zabbix frontend Edit the configuration file ; 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! You may also be interested in:
|
<<: The implementation process of extracting oracle data to mysql database
>>: Axios project with 77.9K GitHub repository: What are the things worth learning?
This example uses jQuery to implement a mouse dra...
Table of contents 1. Problem Description 2. Probl...
<br />The Internet is constantly changing, a...
Today is another very practical case. Just hearin...
3 ways to implement tab switching in Vue 1. v-sho...
Preface Recently, I have been busy dealing with s...
After the form is submitted, the returned HTML pag...
Event bubbling, event capturing, and event delega...
The installation of compressed packages has chang...
How to write judgment statements in mysql: Method...
Usually the goal of building a website is to have...
1. The role of doctype, the difference between st...
Recently, I need to use a lot of fragmented pictu...
2.1、msi installation package 2.1.1、Installation I...
1. Download MySQL Click on the official website d...