Elasticsearch5.X及 head插件 安装说明:

1、下载elasticsearch安装文件:

a) 下载官方源码:

https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.0.0.tar.gz

b) 解压压缩文件

tar -zxvf elasticsearc-5.0.0.tar.gz

c) 修改es配置文件:elasticsearch.yml

cluster.name: kd-cluster //集群名称,所有主机相同的集群名称用于发现集群节点

node.name: node01 //节点名称

node.master: true //该节点是否用做管理节点

node.data: true //该节点是否用做数据节点

node.attr.rack: r1

path.data: 数据存储路径(文件夹)

path.logs: 日志存储路径(文件夹)

bootstrap.memory_lock: false

network.host: 172.16.8.229 //节点ip地址

http.cors.enabled: true //head插件的配置

http.cors.allow-origin: "*" //head插件的配置

http.port: 9200 //集群访问端口

discovery.zen.ping.unicast.hosts: ["node01"] //配置了互信的话这个位置可以使用节点名称(一般节点名成和计算机名称的相同的)。未配置互信的话使用主机ip,用于发现管理节点。

discovery.zen.minimum_master_nodes: 1 //集群最大管理节点数(防止脑裂的配置)

gateway.recover_after_nodes: 1

d) 修改主机配置

vi /etc/security/limits.conf :

* soft nofile 65536

* hard nofile 131072

* soft nproc 2048

* hard nproc 4096

vi /etc/security/limits.d/90-nproc.conf :

* soft nproc 2048

vi /etc/sysctl.conf :

vm.max_map_count=655360

并执行命令:sysctl -p

重启计算机。

2、下载elasticseatch-head插件:

a) 下载head插件文件:

https://github.com/mobz/elasticsearch-head(下载后上传到服务器)

git clone git://github.com/mobz/elasticsearch-head.git(git下载)

b) 下载Node.js:

wget https://nodejs.org/dist/v4.6.1/node-v4.6.1-linux-x64.tar.gz(linux命令直接下载)

https://nodejs.org/dist/(官方网站下载后上传到服务器)

c) 配置node.js环境变量:

vim /etc/profile:

export PATH=/data/elasticsearch/node-v4.6.1-linux-x64/bin:$PATH(根据实际情况添加,路径和格式参照本机环境)

执行source /etc/profile使环境变量生效

(修改profile文件需要root权限,使环境生效的命令在当前es集群使用用户下执行)

d) 查看当前head插件目录下有无node_modules/grunt目录:

没有:执行命令创建:npm install grunt --save

e) 安装head插件:

npm install

或者使用重定向安装:npm install -g cnpm --registry=https://registry.npm.taobao.org

f) 安装grunt:

npm install -g grunt-cli

g) 编辑Gruntfile.js

文件93行添加hostname:’0.0.0.0’

h) 检查head根目录下是否存在base文件夹

没有:将 _site下的base文件夹及其内容复制到head根目录下

i) 启动grunt server:

在head下运行grunt server -d启动head插件

j) 访问head插件:

http://localhost:9100(启动后会有提示:Started connect web server on http://localhost:9100)

 可以发邮件给我:1492370189@qq.com

Elasticsearch5 及 head插件 安装说明的更多相关文章

  1. Elasticsearch5.x Head插件安装

    在5.0版本中不支持直接安装head插件,需要启动一个服务. 由于head插件本质上还是一个nodejs的工程,因此需要安装node,使用npm来安装依赖的包.(npm可以理解为maven) 1.安装 ...

  2. elasticsearch5.0及head插件安装

        这个瞎jb整了半天.准备把es2.4升级到5.0,结果老报错 环境:centos6.5+es2.4是ok的换成es5就出毛病.也不能说啥 ,我用的是最新的 源码解压启动时候报错,具体错误for ...

  3. [elk]elasticsearch5.0及head插件安装

    ElasticSearch2.3/2.4升级到ElasticSearch5.0 参考文档(排名不分先后)https://www.elastic.co/guide/en/elasticsearch/re ...

  4. elasticsearch及head插件安装与配置

    1. 环境软件版本说明 系统:ubuntu14.04.1 JDK:1.8 elasticsearch:5.5.2 node:9.11.1 elasticsearch:5.X 2. 环境软件下载说明 1 ...

  5. ElasticSearch 5.0及head插件安装

    一.elasticsearch安装配置 1.官网下载源码包 https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.0 ...

  6. ElasticSearch5.5.1插件分类

    ElasticSearch5.5.1插件分类 附官网介绍:https://www.elastic.co/guide/en/elasticsearch/plugins/5.5/intro.html 一. ...

  7. ElasticSearch安装和head插件安装

    本文主要介绍elasticsearch5.0安装及head插件安装.确保系统已经安装好jdk1.8以上,操作系统CentOS6以上. 一.elasticsearch安装配置 1.官网下载源码包 下载不 ...

  8. ELK安装和配置及常用插件安装

    环境 CentOS 7.3 root 用户 JDK 版本:1.8(最低要求),主推:JDK 1.8.0_121 以上 关闭 firewall systemctl stop firewalld.serv ...

  9. [Android Studio]SQLScout插件安装破解

    以下内容为原创,欢迎转载,转载请注明 来自天天博客:http://www.cnblogs.com/tiantianbyconan/p/5972138.html [Android Studio]SQLS ...

随机推荐

  1. 说说GestureDetector.OnGestureListener onScroll函数

    public abstract boolean onScroll (MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) ...

  2. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'

    原因:找不到mysql.sock文件 解决方法: 1 找到mysql.sock文件位置 echo "show variables" | mysql | grep "soc ...

  3. linux登录用户(终端)间的通信

    转载 1.write命令 使用权限 : 所有使用者  使用方式 :  write user [ttyname]  说明 : 通过write指令可传递信息给另一位登入系统的用户,当输入完毕后,键入EOF ...

  4. EasyMvc入门教程-高级控件说明(16)信息框控件

    网页开发的时候,会经常向用户显示一些信息,比如执行结果,注意事项等,下面展示一种最简单的信息提示: 代码如下: @Html.Q().Msg().Text("初始化信息").Auto ...

  5. C# 的概念

    1,C#-ASP.NET C# 的概念 2,Intro ASP.NET 一,基本概念: 1,C#--语言 microsoft 开发的纯面向对象的语言,是VS2005的主流开发语言. 语言的发展 C-- ...

  6. Android蓝牙开发教程(三)——蓝牙设备相互通讯

    在上一篇中已经介绍如何连接我们搜索到的蓝牙设备,如果你还没阅读过,建议先看看上一篇文章Android蓝牙开发教程(二)——连接蓝牙设备 在上一篇文章中,无论是自动连接还是被动连接,连接成功后,都是将获 ...

  7. django中日志使用学习记录

    在setting中加入以下代码 LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'formatters': { 'verbose ...

  8. ubuntu下apache添加https支持

    http是无状态,不安全的连接.而https是通过ssl加密的http连接,可靠性更强. 确保openssl安装完成,用openssl来产生和签署证书,可以自己签署,但是不安全,建议用证书机构颁发的证 ...

  9. Struts2学习记录-Value Stack(值栈)和OGNL表达式

    仅仅是学习记录.把我知道的都说出来 一.值栈的作用 记录处理当前请求的action的数据. 二,小样例 有两个action:Action1和Action2 Action1有两个属性:name和pass ...

  10. 接口测试 rest-assured 使用指南

    转自:https://testerhome.com/topics/7060 原文:https://github.com/rest-assured/rest-assured/wiki/Usage本文gi ...