思维狮身人面像无法启动 - “无法启动searchd守护程序”

时间:2016-10-02 10:58:47

标签: ruby-on-rails sphinx thinking-sphinx

rake ts:start出现以下错误:

Failed to start searchd daemon. Check /home/deploy/megratec/shared/log/production.searchd.log.
Failed to start searchd. Check the log files for more information.

日志包含:

[Sun Oct  2 13:35:38.507 2016] [ 4780] listening on 127.0.0.1:9306
[Sun Oct  2 13:35:38.507 2016] [ 4780] bind() failed on 127.0.0.1, retrying... 
 ... 
[Sun Oct  2 13:36:14.541 2016] [ 4780] FATAL: bind() failed on 127.0.0.1: Address already in use
[Sun Oct  2 13:36:14.543 2016] [ 4779] watchdog: main process 4780 exited cleanly (exit code 1), shutting down

ps -efa显示没有搜索运行。

SOS! 谢谢:))

1 个答案:

答案 0 :(得分:3)

1)找到searchd ps -aux(不知道为什么ps -efa做了工作)

2)用sudo service sphinxsearch stoprake ts:stop杀死它并且手动杀死searchd进程无法正常工作)。

3)最后,rake ts:rebuild让狮身人面像恢复了生机。