Ruby on Rails Elasticsearch - Faraday::ConnectionFailed (Connection refused - connect(2) for "localhost" port 9200)

08.52 Muhamad Akbar Bin Widayat 1 Comments

English: Ruby on Rails logo
English: Ruby on Rails logo (Photo credit: Wikipedia)
Ruby on Rails can implement Elastic search. I have project that use Elasticsearch to search job. This is my new experience to set up elastic search.
After I run the rails project, I had error

Faraday::ConnectionFailed (Connection refused - connect(2) for "localhost" port 9200)


This is what you have to do

For ubuntu

sudo service elasticsearch start


For OS X

brew info elasticsearch


I hope this help you.


1 komentar:

terimakasih komentarnya