Устанавливаю по инструкции ZABBIX на сервер по ssh
CentOS Stream release 8
NAME="CentOS Stream"
VERSION="8"
установил mysql-server и запустил
mysqld.service - MySQL 8.0 database server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: <b>active </b>(running) since Tue 2022-11-01 09:07:35 UTC; 3 days ago
Main PID: 16220 (mysqld)
Status: "Server is operational"
Tasks: 39 (limit: 4931)
Memory: 140.3M
CGroup: /system.slice/mysqld.service
└─16220 /usr/libexec/mysqld --basedir=/usr
В файле vim /etc/my.cnf.d/mysql-server.cnf
такие базовые настройки
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
log-error=/var/log/mysql/mysqld.log
pid-file=/run/mysqld/mysqld.pid
установил репо
rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-4.el8.noarch.rpm
почистил кэш
dnf clean all
установил фронт
dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent
потом создал юзера
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
mysql> create user zabbix@localhost identified by 'zabbix';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
скопировал schema and data
zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix
в файле /etc/zabbix/zabbix_server.conf прописал пароль для юзера zabbix
запустил
systemctl restart zabbix-server zabbix-agent httpd php-fpm
systemctl enable zabbix-server zabbix-agent httpd php-fpm
но в логе вот такое
Starting Zabbix Server. Zabbix 6.0.9 (revision 64721203c07).
79605:20221104:180143.858 ****** Enabled features ******
79605:20221104:180143.858 SNMP monitoring: YES
79605:20221104:180143.858 IPMI monitoring: YES
79605:20221104:180143.858 Web monitoring: YES
79605:20221104:180143.858 VMware monitoring: YES
79605:20221104:180143.858 SMTP authentication: YES
79605:20221104:180143.858 ODBC: YES
79605:20221104:180143.858 SSH support: YES
79605:20221104:180143.858 IPv6 support: YES
79605:20221104:180143.858 TLS support: YES
79605:20221104:180143.858 ******************************
79605:20221104:180143.858 using configuration file: /etc/zabbix/zabbix_server.conf
79605:20221104:180143.866 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to MySQL server on '139.162.155.83' (13)
79605:20221104:180143.866 database is down: reconnecting in 10 seconds
подскажите пожалуйста что я сделал не так? Как исправить?