2016-10-02 144 views
1

rake ts:start给出以下错误:思考狮身人面像不启动 - “无法启动的searchd守护”

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没有显示出searchd的运行。

SOS! 谢谢:)

回答

3

1)找到searchdps -aux(不知道为什么ps -efa做尼特工作)

2)sudo service sphinxsearch stoprake ts:stop杀了它,杀searchd过程中手动不工作)。

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