如何找到ElasticSearch正在安装我的插件的位置? [英] How do I find where ElasticSearch is installing my plugins?

查看:143
本文介绍了如何找到ElasticSearch正在安装我的插件的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have installed elasticsearch with brew install elasticsearch. My plugins seem to reside in /usr/local/Cellar/elasticsearch/0.19.8/plugins. With cat $( which plugin ) I see a ES_HOME variable that contains the correct path.

有没有一种方法来询问 ES_HOME 或插件目录?

Is there a way to ask elastic for ES_HOME or the plugins directory?

我正在寻找的是插件使用的目录可执行文件在我执行 plugin -install something 时安装插件。我想在脚本中使用该路径来启动弹性搜索。

What I am looking for is the directory used by the plugin executable to install the plugins when I do plugin -install something. I want to use that path in a script to fire up elastic search.

推荐答案

找到您的弹性搜索主目录&安装插件请按照以下步骤操作。

To find your elasticsearch home directory & install plugin(s) follow these steps below.

找到您的主目录

$ 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

这篇关于如何找到ElasticSearch正在安装我的插件的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆