sunspot_rails gem - “ Errno:: ECONNREFUSED (Connection refused - connect (2)) ”

前端 未结 4 706
有刺的猬
有刺的猬 2020-12-30 01:50

I use gem sunspot_rails https://github.com/outoftime/sunspot I did everything according to the instructions on http://railscasts.com/episodes/278-search-with-sunspot, but ge

相关标签:
4条回答
  • 2020-12-30 02:27

    Have you started the Solr server?

    rake sunspot:solr:start
    

    If not than start the solr server first

    And If yes than try

    rake sunspot:solr:run
    

    Hope this will help .

    0 讨论(0)
  • 2020-12-30 02:31

    Just configure the rake task with the test environment:

    rake sunspot:solr:run RAILS_ENV=test
    
    0 讨论(0)
  • 2020-12-30 02:43

    Make sure your rails app is looking for the solr server on the correct port.

    0 讨论(0)
  • 2020-12-30 02:46

    Make sure that Java Runtime Environment already installed.

    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java7-installer
    
    0 讨论(0)
提交回复
热议问题