1安装zibbix官方源
rpm -Uvh https://repo.zabbix.com/zabbix/5.5/rhel/8/x86_64/zabbix-release-5.5-1.el8.noarch.rpm
2安装软件包
dnf install -y zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-sql-scripts zabbix-agent2
3安装mariadb-server
dnf -y inatall mariadb-server
4启动数据库并设置开机启动
systemctl start mariadb && systemctl enable mariadb
6设置数据库密码(默认没有密码)
mysql_secure_installation
第一步回车然后设置密码 然后一路Y
7、数据库设置
[root@node1 ~]# mysql -uroot -p123456
Enter password:
#建立一个zabbix的数据库字符集用的的utf8
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.000 sec)