Sphinx 搜索已死但子系统已锁定

Sphinx 搜索已死但子系统已锁定

我已经在 sphinx 上配置了所有内容。使用 Putty 在命令行界面中运行良好。我甚至可以在命令行界面中进行搜索,如下所示,

[root@phpsalzer sphinx]# search -i gplay 'toy'
Sphinx 2.0.4-id64-release (r3135)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/etc/sphinx/sphinx.conf'...
index 'gplay': query 'toy ': returned 1 matches of 1 total in 0.000 sec

displaying matches:
1. document=2, weight=1883, app_id=com.disney.ToyStorySmashIt.goo, app_title=Toy Story: Smash It!, app_ratings=4.500000

words:
1. 'toy': 1 documents, 4 hits

但问题是,我想使用 php 获得相同的结果。但它返回类似“ ERROR: Query failed: connection to 172.16.1.77:9312 failed (errno=13, msg=Permission denied).”的错误

最后,检查以下命令后发现我的 sphinx 端口没有处于 LISTEN 状态,

service searchd status

输出为:searchd dead but subsys locked

netstat -tulpen | grep :9312

输出为空。

请帮帮我,下一步我该怎么做?

答案1

尝试先删除 binlog 文件,然后启动 searchd

rm -f /var/lib/sphinx/binlog.*

正如 Adalbert 所建议的http://sphinxsearch.com/forum/view.html?id=7445

答案2

在 sphinx conf 上尝试一下:

binlog_path = #

然后服务 searchd 重新启动并且服务 searchd 状态。

相关内容