ruby searchkick失败:连接被拒绝

时间:2013-12-10 18:07:26

标签: ruby-on-rails search

我想在我的Rails应用程序上实现searchkick,因此我添加到我的gem文件中:

gem 'elasticsearch'
gem 'searchkick'

,做了一个

bundle install

,然后

rake searchkick:reindex CLASS=Pfile

它返回以下错误:

rake aborted!
 No connection could be made because the target machine actively refused it. - connect(2)
 Tasks: TOP => searchkick:reindex
 (See full trace by running task with --trace)

任何帮助将不胜感激:)

1 个答案:

答案 0 :(得分:0)

自己碰到了这个。试试elasticsearch -f -D es.config=/usr/local/opt/elasticsearch/config/elasticsearch.yml