如何解决sphinx启动失败?

错误一:/usr/local/sphinx/bin/searchd: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory

ldconfig -v|grep mysql

发现加载:/usr/lib/mysql:
libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0
libmysqlclient.so.15 -> libmysqlclient.so.15.0.0

ldd /usr/local/sphinx/bin/searchd

发现错误 libmysqlclient.so.16 => not found
解决办法:找到libmysqlclient.so.16 的库copy到/lib/ 下 就行了

错误二:上面问题解决后,启动又出现错误/usr/local/sphinx/bin/searchd: error while loading shared libraries: /lib/libmysqlclient.so.16: cannot restore segment prot after reloc: Permission denied

没有权限

解决办法:setenforce 0


作者头像
南宫俊逸创始人

君子好学,自强不息~

上一篇:nginx: [emerg] mkdir() “/dev/shm/nginx_temp/client_body” failed (2: No such file or directory)
下一篇:ERROR: modinfo: could not find module power_meter

相关推荐

4

发表评论

阿里云2021年 618 年中钜惠活动