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! 谢谢:))
答案 0 :(得分:3)
1)找到searchd
ps -aux
(不知道为什么ps -efa
做了工作)
2)用sudo service sphinxsearch stop
(rake ts:stop
杀死它并且手动杀死searchd
进程无法正常工作)。
3)最后,rake ts:rebuild
让狮身人面像恢复了生机。