简体   繁体   English

如何为弹性搜索安装插件/头?

[英]how to install plugin/head for elastic search?

I have installed elastic search and its plugin head but when i enter the我已经安装了弹性搜索及其插件头,但是当我输入

 **url 
"localhost:9200/_plugin/head/"**

It does not shows any thing?它没有显示任何东西?

And I have also install marvel/SENSE for monitoring purpose.而且我还安装了 Marvel/SENSE 以进行监控。 I have installed plugin/head using我已经安装了插件/头使用

sudo elasticsearch/bin/plugin -install mobz/elasticsearch-head

But its also not working .但它也不起作用。 Error: console not found on url http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/sense_widget.html?snippets/010_Intro/10_Info.json错误:在 url http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/sense_widget.html?snippets/010_Intro/10_Info.json 上找不到控制台

BTW I am new to elastic search.顺便说一句,我是弹性搜索的新手。 So if you could tell me why it is not showing anything or have i made any mistake.所以如果你能告诉我为什么它没有显示任何东西或者我犯了任何错误。

Thank in advance!预先感谢!

If someone tries with version 5 or else:如果有人尝试使用第 5 版或其他版本:

  • for Elasticsearch 5.x: plugins are not supported.对于 Elasticsearch 5.x:不支持插件。 Run elasticsearch-head as a standalone将 elasticsearch-head 作为独立运行

  • for Elasticsearch 2.x – 4.x: sudo elasticsearch/bin/plugin install mobz/elasticsearch-head对于 Elasticsearch 2.x – 4.x: sudo elasticsearch/bin/plugin install mobz/elasticsearch-head

  • for Elasticsearch 1.x: sudo elasticsearch/bin/plugin -install mobz/elasticsearch-head/1.x对于 Elasticsearch 1.x: sudo elasticsearch/bin/plugin -install mobz/elasticsearch-head/1.x
  • for Elasticsearch 0.9: sudo elasticsearch/bin/plugin -install mobz/elasticsearch-head/0.9对于 Elasticsearch 0.9: sudo elasticsearch/bin/plugin -install mobz/elasticsearch-head/0.9

From GitHub来自GitHub

I've just installed ES using 1.4.4.我刚刚使用 1.4.4 安装了 ES。 on windows.在窗户上。 Please check if you've got the confirmation that the plugging is installed.请检查您是否已确认已安装插件。 Also double check your commands.还要仔细检查您的命令。 See below.见下文。

在此处输入图片说明

The following are what I used on my Ubuntu 14.04 elasticsearch 2.0.0.以下是我在 Ubuntu 14.04 elasticsearch 2.0.0 上使用的内容。 instead of -i, you need to use the word install ( without dash )而不是 -i,你需要使用安装这个词(不带破折号)

with proxy:带代理:

/opt/elasticsearch/bin/plugin install -DproxyPort=80 -DproxyHost=www.example.com mobz/elasticsearch-head

without proxy:没有代理:

/opt/elasticsearch/bin/plugin install mobz/elasticsearch-head

Updating the already existing answers for CentOS/RHEL 7.更新 CentOS/RHEL 7 的已有答案。

Since v5.x the ElasticSearch Head plugin is deprecated and es-head must be run as a standalone server.从 v5.x 开始,ElasticSearch Head 插件被弃用,es-head 必须作为独立服务器运行。 Here's how to install on CentOS/RHEL 7.以下是在 CentOS/RHEL 7 上安装的方法。

First, install Node.js and Git.首先,安装 Node.js和 Git。

Then run these commands:然后运行这些命令:

git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
npm install
npm run start

Assuming that your ES installation runs on http://localhost:9200/ , you can now access es-head on http://localhost:9100/ .假设您的 ES 安装在http://localhost:9200/ 上运行,您现在可以在http://localhost:9100/上访问 es-head。

如果必须使用代理访问外部网站,可以使用以下命令进行安装:

bin/plugin -i -DproxyPort=80 -DproxyHost=www.example.com mobz/elasticsearch-head

You can also run elastic-search head as a chrome extension "ElasticSearch Head".您还可以将 elastic-search head 作为 chrome 扩展“ElasticSearch Head”运行。 Click the extension icon in the toolbar of your web browser after installing.安装后单击网络浏览器工具栏中的扩展图标。

If you are on Ubuntu 16.04 or any other version, This command will surely run,如果您使用的是 Ubuntu 16.04 或任何其他版本,此命令肯定会运行,

elasticsearch/bin/plugin install -DproxyPort=80 -DproxyHost=www.example.com mobz/elasticsearch-head elasticsearch/bin/plugin install -DproxyPort=80 -DproxyHost=www.example.com mobz/elasticsearch-head

You can create systemd unit with npm run start.您可以使用 npm run start 创建 systemd 单元。 Like this:像这样:

[Unit]
Description=Elasticsearch-head
After=syslog.target
After=network.target

[Service]
ExecStart=/usr/bin/npm run start
WorkingDirectory=/usr/share/elasticsearch/elasticsearch-head
Restart=always
StandardOutput=syslog
StandardError=syslog
User=user
Group=user

[Install]
WantedBy=multi-user.target

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM