gpt4 book ai didi

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

转载 作者:数据小太阳 更新时间:2023-10-29 06:39:06 25 4
gpt4 key购买 nike

所以我通过brew安装了elasticsearch:

$ brew install elasticsearch

然后当我运行 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 服务器:

./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 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14712461/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com