Linux

关注公众号 jb51net

关闭
首页 > 网站技巧 > 服务器 > Linux > 安装zabbix之后登陆报错:zabbix Details Cannot connect to the database. No such file or directory

解决安装zabbix之后登陆报错:zabbix Details Cannot connect to the database. No such file or directory

作者:IT_Bigboy_sz

检查PHP配置文件(php.ini)中mysql.default_socket路径是否与MySQL实际socket文件位置一致,确认MySQL服务已启动且权限正确,必要时手动指定socket路径或重启服务

问题

mysql是编译安装的php找不到默认的mysql.sock

解决办法

find / -name php.ini
vim /etc/opt/rh/rh-php72/php.ini
systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm

总结

以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。

您可能感兴趣的文章:
阅读全文