gpt4 book ai didi

directory - 我如何找到 ElasticSearch 在哪里安装我的插件?

转载 作者:行者123 更新时间:2023-11-29 02:42:52 25 4
gpt4 key购买 nike

我已经使用 brew install elasticsearch 安装了 elasticsearch。我的插件似乎位于 /usr/local/Cellar/elasticsearch/0.19.8/plugins 中。使用 cat $( which plugin ) 我看到一个包含正确路径的 ES_HOME 变量。

有没有办法向 elastic 询问 ES_HOME 或插件目录?


编辑

当我执行plugin -install something 时,我要查找的是plugin 可执行文件用来安装插件的目录。我想在脚本中使用该路径来启动 Elasticsearch 。

最佳答案

要找到您的 elasticsearch 主目录 & 安装插件,请按照以下步骤操作。

找到您的主目录 (查找设置 -> 路径 -> 主目录以获得值(value))

$ curl "localhost:9200/_nodes/settings?pretty=true"

转到位置 (例如 settings.path.home 值:/usr/local/Cellar/elasticsearch/1.5.0)

$ cd /usr/local/Cellar/elasticsearch/1.5.0

安装插件 (示例插件:mobz/elasticsearch-head)

$ bin/plugin -install mobz/elasticsearch-head

关于directory - 我如何找到 ElasticSearch 在哪里安装我的插件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11954677/

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