本文介绍了Zabbix监控工具数据库连接问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Linux Cent OS 6.x上安装Zabbix监视服务器.我已经在上面安装了Zabbix 2.4版本.我已经按照Zabbix的以下文章对其进行了配置:

I am trying to install Zabbix Monitoring server on Linux Cent OS 6.x. I have installed Zabbix 2.4 version on it. I have followed the following article of Zabbix to configure it:

https://www.zabbix.com/documentation/2.4/manual/安装/install_from_packages

一旦通过浏览器设置到达IPAddress/zabbix,我就成功通过了PHP设置和配置阶段.

Once I reach at IPAddress/zabbix at browser settings, I have successfully passed PHP settings and configuration stage.

但是,当我进入必须应用数据库设置的后续步骤时,它不起作用.但是,我已经创建了具有权限的必需数据库,并且还导入了模式.

But, when I go to next steps where I have to apply database settings, it is not working. However, I have created required database with permissions, and imported schemas too.

我已经检查了所有必需的服务,它们也运行良好.尽管我已经重新启动了所有服务,但多次重新启动了服务器.

I have checked all required services and they are running fine too. Although I have restarted all the services, rebooted server many times.

错误消息:建立数据库连接错误

Error Message:Error in establishing database connection

有人解决吗?

谢谢

山地甘地

推荐答案

$DB['TYPE']$DB['SERVER']$DB['PORT']$DB['DATABASE']$DB['USER']$DB['PASSWORD']项目编辑/etc/zabbix/web/zabbix.conf.php文件.

Edit /etc/zabbix/web/zabbix.conf.php file for $DB['TYPE'] , $DB['SERVER'], $DB['PORT'], $DB['DATABASE'], $DB['USER'] and$DB['PASSWORD'] items.

这篇关于Zabbix监控工具数据库连接问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 19:29