所以我通过brew安装了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]
我怎样才能解决这个问题?欢迎任何想法和建议。
我这样做了,它对我有用:
获取包裹:
$ curl -k -L -o elasticsearch-0.20.2.tar.gz http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.2.tar.gz
解压:
$ tar -zxvf elasticsearch-0.20.2.tar.gz
运行弹性搜索服务器:
./elasticsearch-0.20.2/bin/elasticsearch -f