zabbix_server: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory

安装zabbix server后启动出现如下报错“zabbix_server: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory”

解决办法

先查找locate libmysqlclient.so.18所在位置

[root@VM_137_216_centos etc]# locate libmysqlclient.so.18
/usr/lib64/mysql/libmysqlclient.so.18
/usr/lib64/mysql/libmysqlclient.so.18.0.0

然后将对应目录设置到/etc/ld.so.conf配置中:

echo "/usr/lib64/mysql/" >> /etc/ld.so.conf
ldconfig

再次启动zabbix server成功。

此文部分内容参考了:zabbix_server:/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.

标签: zabbix

发表评论: