ruby-on-rails – 无法通过Homebrew启动elasticsearch服务器

所以我已经通过酿造安装了弹性搜索:

$brew install elasticsearch

那么当我运行弹性搜索服务器

elasticsearch -f -D es.config=/usr/local/Cellar/elasticsearch/0.19.3/config/elasticsearch.yml

我得到这个错误:

{0.20.4}: Setup Failed ...
- FailedToResolveConfigException[Failed to resolve config path [/usr/local/Cellar/elasticsearch/0.19.3/config/elasticsearch.yml], tried file path [/usr/local/Cellar/elasticsearch/0.19.3/config/elasticsearch.yml], path file [/usr/local/Cellar/elasticsearch/0.20.4/config/usr/local/Cellar/elasticsearch/0.19.3/config/elasticsearch.yml], and classpath]

如何解决这个问题?欢迎任何想法och建议.

我做到了,它为我工作:

获取包装:

$curl -k -L -o elasticsearch-0.20.2.tar.gz http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.2.tar.gz

Unzipp:

$tar -zxvf elasticsearch-0.20.2.tar.gz

运行弹性搜索服务器

./elasticsearch-0.20.2/bin/elasticsearch -f
最佳答案
尝试

elasticsearch -f -Des.path.conf=/usr/local/Cellar/elasticsearch/0.19.3/config/

转载注明原文:ruby-on-rails – 无法通过Homebrew启动elasticsearch服务器 - 代码日志