当前位置: 代码迷 >> 综合 >> php sphinx扩展错误,object(SphinxClient)#1 (2) { [error]= string(35) connect() failed: Permission den
  详细解决方案

php sphinx扩展错误,object(SphinxClient)#1 (2) { [error]= string(35) connect() failed: Permission den

热度:11   发布时间:2023-09-22 09:18:28.0

我在centos上测试coreseek,一切准备就绪后,安装php sphinx扩展,发现php调用时
php sphinx扩展错误,object(SphinxClient)#1 (2) { [error]= string(35) connect() failed: Permission den

打印出的是SphinxClient Object ( [error] => connect() failed: Permission denied [warning] => )
一直很困惑,不知道怎么解决,后来发现是Linux的selinux防火墙的影响,执行setenforce 0 关闭selinux防火墙后再运行就ok了,现在记录下来给遇到同样问题的网友作为参考,免得走弯路。

  相关解决方案