码迷,mamicode.com
首页 > 其他好文 > 详细

ELK 插件(一) ---- head

时间:2019-02-10 23:35:28      阅读:305      评论:0      收藏:0      [点我收藏+]

标签:java_home   wget   ber   elk   执行命令   npm   home   img   http   

01,

  安装 node.js

  wget https://nodejs.org/dist/v10.15.1/node-v10.15.1-linux-x64.tar.xz

  tar xf node-v10.15.1-linux-x64.tar.xz

  vim /etc/profile

  NODE_HOME=/elk/node
  PATH=$PATH:$JAVA_HOME:$NODE_HOME/bin

  技术图片

02, 安装grunt

   npm install -g grunt-cli

  [root@elk-master head]# grunt -version
             grunt-cli v1.3.2
03,安装head

    wget https://github.com/mobz/elasticsearch-head/archive/master.zip

    unzip master.zip

    

修改elasticsearch-head-master下Gruntfile.js配置文件,添加hostname: ‘*‘,

vim Gruntfile.js

  技术图片

 

 

  更换npm源

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

  使用cnpm安装

  cnpm install

技术图片

   

 可以选择更改连接的位置

  vim _site/app.js技术图片

  

运行完成后执行命令完成后没有报错则进入head 根目录

  grunt server &

   技术图片

 

  

一直存在如下,可选择重启elastichsearch,也可能elasticsearch服务与elasticsearch-head之间可能存在跨越

编辑elasticsearch.yml文件添加内容

  vim config/elasticsearch.yml

    http.cors.enabled: true

    http.cors.allow-origin: "*"

  重启

  技术图片

 

 

 

 

  

ELK 插件(一) ---- head

标签:java_home   wget   ber   elk   执行命令   npm   home   img   http   

原文地址:https://www.cnblogs.com/kingle-study/p/10360412.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!