Elasticsearch-6.7.0下安装head插件

Elasticsearch-6.7.0下安装head插件

npm install -g grunt-cli

Elasticsearch-6.7.0下安装head插件
进入root目录,不然会出现:‘grunt’ 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Elasticsearch-6.7.0下安装head插件

  • 下载Head插件
    https://github.com/mobz/elasticsearch-head
    修改head插件源码
    修改服务器监听地址:Gruntfile.js
    在keepalive:true 下面添加 hostname: ‘*’
    Elasticsearch-6.7.0下安装head插件
    修改head的连接地址,发现存在,就不修改了:
    Elasticsearch-6.7.0下安装head插件

  • 启动elasticsearch
    进入F:\AZtools\elasticsearch-6.7.0\bin目录执行
    elasticsearch.bat

  • 然后在head源码目录中,执行npm install 下载的包:

npm install

Elasticsearch-6.7.0下安装head插件
需要下载一个phantomjs-2.1.1-windows.zip,要下载一个这个特别慢,所以我自己手动下载一个
下载地址:http://phantomjs.org/download.html
我放在了Head目录下了,如下:
Elasticsearch-6.7.0下安装head插件
再次运行后成功,如下:
Elasticsearch-6.7.0下安装head插件

  • 在head源代码目录下启动nodejs
grunt server

Elasticsearch-6.7.0下安装head插件