Rocky8安装zabbix6.0 启动报错问题解决

zabbix-server启动报错

● zabbix-server.service - Zabbix Server
   Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Tue 2022-08-30 09:45:08 CST; 7s ago
  Process: 7325 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
 Main PID: 7347 (code=exited, status=1/FAILURE)
    Tasks: 0 (limit: 23468)
   Memory: 0B
   CGroup: /system.slice/zabbix-server.service

8月 30 09:45:08 bogon systemd[1]: zabbix-server.service: Failed with result 'exit-code'.

 

查看zabbix-server日志

[root@bogon ~]# tail -f /var/log/zabbix/zabbix_server.log 
  7939:20220830:095656.632 IPv6 support:              YES
  7939:20220830:095656.632 TLS support:               YES
  7939:20220830:095656.632 ******************************
  7939:20220830:095656.632 using configuration file: /etc/zabbix/zabbix_server.conf
  7939:20220830:095656.666  
  7939:20220830:095656.666 Unable to start Zabbix server due to unsupported MariaDB database version (10.03.32).   #数据库版本不受支持
  7939:20220830:095656.666 Must be at least (10.05.00).  #至少需要10.05版本
  7939:20220830:095656.666 Use of supported database version is highly recommended.
  7939:20220830:095656.666 Override by setting AllowUnsupportedDBVersions=1 in Zabbix server configuration file at your own risk.
  7939:20220830:095656.666  

 

更新或重新安装新版数据库,配置新版数据库yum源

 

进入yum源目录,创建MariaDB.repo

 

重新安装mariadb数据库

sudo dnf install MariaDB-server
sudo systemctl start mariadb

 

重启zabbix-server服务

 

 

 

posted @ 2022-08-30 10:35  局域网外  阅读(787)  评论(0编辑  收藏  举报