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/

相关文章

最近做自动化测试时,深感自己对前端涉猎太少,加上对这块比...
homebrew本身就是一个git仓库。使用homebrew安装软件包时,会...
一、Homebrew安装、卸载等命令Homebrew的安装和卸载都非常简...
在mac系统中,使用homebrew可以很方便的管理包。按照官网的说...
我按照说明从这里使用brew安装mysqlhttps://gist.github.com...
我在macOS10.12.4上安装了nginx1.10.3和php5.5.38作为开发服...