zabbix_server:/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.

[root@localhost lib]# /etc/init.d/zabbix_server start
Starting zabbix_server:  /usr/local/zabbix/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
                                                          [FAILED]

解决方法

[root@localhost ~]# locate libmysqlclient.so.18
/usr/local/mysql/lib/libmysqlclient.so.18
/usr/local/mysql/lib/libmysqlclient.so.18.0.0
/usr/src/mysql-5.6.10/libmysql/libmysqlclient.so.18
/usr/src/mysql-5.6.10/libmysql/libmysqlclient.so.18.0.0

[root@localhost ~]# echo "/usr/local/mysql/lib" >> /etc/ld.so.conf

[root@localhost ~]# ldconfig


你可能感兴趣的:(zabbix_server:/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.)