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?
Resource merging and compression for two purposes...
Today I wanted to change the mysql port, but I fo...
We usually have a scanning box when we open the c...
Note that this is not a project created by vue-cl...
The RHEL/CentOS series of Linux operating systems...
Recently, when upgrading the Zabbix database from...
Table of contents docker system df docker system ...
The MySQL server is running with the --skip-grant...
After installing the latest Windows 10 update, I ...
This article example shares the specific code of ...
There is another tree structure Javascript object...
1 Pull the image from hup docker pull nginx 2 Cre...
A process is a program code that runs in the CPU ...
The mysql explain command is used to show how MyS...
MySQL installation instructions MySQL is a relati...