zabbix 安装时 到第三步时 database type 没有mysql选项
Posted 运维工匠实战(如果发现有错误请大家把正确的方法发送给我,方便
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了zabbix 安装时 到第三步时 database type 没有mysql选项相关的知识,希望对你有一定的参考价值。
没有mysql选项:
思路首选想到httpd:
一些问题都会从日志中反映出来:
# tail -f error_log php Warning: PHP Startup: Unable to load dynamic library \'/usr/lib64/php/modules/pdo_mysql.so\' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0 [Fri May 26 19:33:13 2017] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations [Fri May 26 19:44:17 2017] [notice] caught SIGTERM, shutting down [Fri May 26 19:44:17 2017] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Fri May 26 19:44:17 2017] [notice] Digest: generating secret for digest authentication ... [Fri May 26 19:44:17 2017] [notice] Digest: done PHP Warning: PHP Startup: Unable to load dynamic library \'/usr/lib64/php/modules/mysql.so\' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library \'/usr/lib64/php/modules/mysqli.so\' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library \'/usr/lib64/php/modules/pdo_mysql.so\' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0 [Fri May 26 19:44:17 2017] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations # rpm -qf /usr/lib64/perl5/auto/DBD/mysql/mysql.so perl-DBD-MySQL-4.013-3.el6.x86_64 # yum install perl-DBD-MySQL.x86_64 # /etc/init.d/httpd restart
问题解决:
以上是关于zabbix 安装时 到第三步时 database type 没有mysql选项的主要内容,如果未能解决你的问题,请参考以下文章
centos8.3安装zabbix5.0,提示Cannot connect to the database,怎么解决?