Elasticsearch 安装head插件
一、简介
elasticsearch-head是一个界面化的集群操作和管理工具,可以对集群进行傻瓜式操作。你可以通过插件把它集成到es(首选方式),也可以安装成一个独立webapp。
Elasticsearch 5 以上版本已经不支持 site plugins 的方式安装head插件了,所以 head 需要作为一个单独的服务进行安装。
官方的文档:https://github.com/mobz/elasticsearch-head
- for Elasticsearch 5.x: site plugins are not supported. Run as a standalone server
- for Elasticsearch 2.x: sudo elasticsearch/bin/plugin install mobz/elasticsearch-head
- for Elasticsearch 1.x: sudo elasticsearch/bin/plugin -install mobz/elasticsearch-head/1.x
- for Elasticsearch 0.x: sudo elasticsearch/bin/plugin -install mobz/elasticsearch-head/0.9
二、安装环境
head下载:wget https://github.com/mobz/elasticsearch-head/archive/master.zip 或者github下载:https://github.com/mobz/elasticsearch-head
head插件是一个nodejs的项目,因此需要安装node环境,使用npm来安装依赖的包。地址:http://nodejs.org/dist/v8.1.4/node-v8.1.4-linux-x64.tar.gz
三、安装过程
1. 安装node
# yum -y install gcc make gcc-c++ openssl-devel
# tar -zxvf node-v8.1.4-linux-x64.tar.gz
# vim /etc/profile
export NODE_HOME=/opt/es/node/node-v8.1.4-linux-x64
export PATH=$NODE_HOME/bin:$PATH
# source /etc/profile
验证是否安装成功
# node -v && npm -v
v8.1.4
5.0.3
也可以通过yum快捷安装node
# yum install nodejs -y
2. 安装grunt
grunt 是一个很方便的构建工具,可以进行打包压缩、测试、执行等工作,es5里的head插件就是通过grunt启动的,因此需要安装 grunt。
# unzip elasticsearch-head-master.zip
# cd elasticsearch-head-master
# npm install(此过程有可能nmp报错,需要取消ssl验证:npm config set strict-ssl false)
# npm install grunt-cli(windows:npm install grunt-cli -g)
安装完验证一下:
# ./node_modules/grunt/bin/grunt -version
grunt-cli v1.2.0
grunt v1.0.1
3. 修改配置文件
# vim elasticsearch-head-master/Gruntfile.js(增加增加hostname属性,设置为*:hostname: '*',)

修改连接 Elasticsearch 的地址,elasticsearch-head-master/_site/app.js,修改 localhost:9200 为实际 Elasticsearch 的地址
# vim elasticsearch-head-master/_site/app.js(搜关键字9200找到位置)
this.base_uri = this.config.base_uri || this.prefs.get("app-base_uri") || "http://es真实地址:9200";
修改 Elasticsearch 配置文件elasticsearch.yml,增加下面两个配置:
http.cors.enabled: true
http.cors.allow-origin: "*"
四、启动head
启动 head 插件之前,需要先启动 Elasticsearch 服务
前台启动:./elasticsearch-head-master/node_modules/grunt/bin/grunt server
后台启动: nohup ./elasticsearch-head-master/node_modules/grunt/bin/grunt server &
然后在浏览器输入地址 ip:9100 即可测试结果

Elasticsearch 安装head插件的更多相关文章
- ElasticSearch安装SQL插件
ElasticSearch安装SQL插件下载地址(中国大佬开发的,膜拜ing):https://github.com/NLPchina/elasticsearch-sql 1.记得选择和自己Elast ...
- Elasticsearch安装X-Pack插件
Elasticsearch安装X-Pack插件, 基于已经安装好的6.2.2版本的Elasticsearch, 安装6.2.2版本的X-Pack插件. 1.下载x-pack的zip包到本地 https ...
- elasticsearch安装head插件
安装Head插件 由于head插件本质上还是一个nodejs的工程,因此需要安装node,使用npm来安装依赖的包. <1>安装Node.js 下载解压 wget https://node ...
- ElasticSearch安装拼音插件 elasticsearch-analysis-pinyin
elasticsearch-analysis-pinyin 是 ElasticSearch的拼音插件.强大的功能支持拼音等的搜索 1.下载源代码 源码地址https://github.com/medc ...
- elasticsearch 安装 head插件
head插件 切换到Elasticsearch的安装目录 cd ~/demo/elasticsearch/es1 执行安装命令 [root@localhost es1]# bin/plugin ins ...
- Elasticsearch安装 + Head插件安装 + Bigdesk插件安装
一.Elasticsearch安装 1.官网下载zip包:https://www.elastic.co/downloads/elasticsearch 2.解压到自己指定的文件夹 3.运行\bin\e ...
- Elasticsearch 安装 Head 插件
引子:在上一篇文章Elasticsearch入门(一):CentOS 7.6 安装ES 7.0.0中,我们讲了如何在CentOS 7.6环境下安装 Elasticsearch 7.0.下面,我将讲一讲 ...
- elasticsearch安装marvel插件
Marvel插件要在Elasticsearch和Kibana中同时安装.Step 1: Install Marvel into Elasticsearch: bin/plugin install li ...
- ElasticSearch安装拼音插件(pinyin)
环境介绍 集群环境如下: Ubuntu14.04 ElasticSearch 2.3.1(3节点) JDK1.8.0_60 开发环境: Windows10 JDK 1.8.0_66 Maven 3.3 ...
随机推荐
- Linux下网络设置
1.临时IP配置 # ifconfig eth0 192.168.110.118 netmask 255.255.255.0 gateway 192.168.110.2 up # ...
- tar/gzip/zip文件打包、压缩命令
一.tar打包备份工具 1.命令功能 tar 将多个文件或目录打包在一起,可用通过调用gzip或zip实现压缩.解压的命令:tar不仅可以多多个文件进行打包,还可以对多个文件打包后进行压缩. 2.语法 ...
- Directed Roads CodeForces - 711D (基环外向树 )
ZS the Coder and Chris the Baboon has explored Udayland for quite some time. They realize that it co ...
- Codeforces Round #575 (Div. 3) C. Robot Breakout (模拟,实现)
C. Robot Breakout time limit per test3 seconds memory limit per test256 megabytes inputstandard inpu ...
- Codeforces 903 绝对值1e19longdouble算贡献 汉明距离交换两项是否可行
A /*Huyyt*/ #include<bits/stdc++.h> #define mem(a,b) memset(a,b,sizeof(a)) #define pb push_bac ...
- openssl x.509证书
openssl x.509证书 openssl x.509证书 ngnix 支持
- Python之网络编程之concurrent.futures模块
需要注意一下不能无限的开进程,不能无限的开线程最常用的就是开进程池,开线程池.其中回调函数非常重要回调函数其实可以作为一种编程思想,谁好了谁就去掉 只要你用并发,就会有锁的问题,但是你不能一直去自己加 ...
- 补充:bytes类型以及字符编码转换
内容转自小猿圈链接:https://book.apeland.cn/details/41/ 定义 bytes类型是指一堆字节的集合,在python中以b开头的字符串都是bytes类型 b'\xe5\x ...
- HDU-4289-Control(最大流最小割,拆点)
链接: https://vjudge.net/problem/HDU-4289 题意: You, the head of Department of Security, recently receiv ...
- pyqt5-QFrame边框样式
继承 QObject-->QWidget-->QFrame 是一个基类, 可以选择直接使用,主要是用来控制一些边框样式:例如:凸起.凹下.阴影.线宽 QFrame对象效果对照图: im ...