zabbix3.2启动有如下报错:
# service zabbix_server start
Starting zabbix_server: /home/zabbix-server/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.18:
cannot open shared object file: No such file or directory
[失败]
解决方法:
查找这个模块的位置:
# locate libmysqlclient.so.18
/usr/local/mysql/lib/libmysqlclient.so.18
/usr/local/mysql/lib/libmysqlclient.so.18.1.0
查看ld.so.conf文件的内容:
# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
添加路径信息:
# echo "/usr/local/mysql/lib" >> /etc/ld.so.conf
# ldconfig 刷新加载