[关闭]
@1234567890 2017-05-22T13:38:23.000000Z 字数 650 阅读 1158

elasticsearch-head插件

ES


主要步骤

  1. git clone git://github.com/mobz/elasticsearch-head.git
  2. cd elasticsearch-head
  3. npm install
  4. grunt server

node安装

由于head插件本质上还是一个nodejs的工程,因此需要安装node,使用npm来安装依赖的包,https://nodejs.org/en/download/

  1. # set node environment
  2. export NODE_HOME=/usr/elk/node-v6.9.1-linux-x64
  3. export PATH=$PATH:$NODE_HOME/bin

image_1b3pmil71gfd1pbgm9h1qfb1pv89.png-14.7kB

依赖包安装

  1. cd elasticsearch-head
  2. npm install
  3. grunt server(如果没有grunt,执行npm install -g grunt-cli安装)
  4. open http://localhost:9100/

注意 npm install 安装缓慢

  1. npm install -g cnpm --registry=http://registry.npm.taobao.org

为了避免每次安装都需要--registry参数,可以使用如下命令进行永久设置:

  1. npm config set registry http://registry.npm.taobao.org

elasticsearch.yml 添加配置

  1. //:后面要留空格
  2. http.cors.enabled: true
  3. http.cors.allow-origin: "*"
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注