安装elasticsearch-head
电脑前提是安装了node.js与npm
下载elasticsearch-head https://github.com/mobz/elasticsearch-head
执行
npm install
npm run start
安装完成以后可视化工具是连接不上elasticsearch集群的
需要配置
vi /opt/install/elasticsearch/config/elasticsearch.yml
添加内容
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers: "X-Requested-With, Content-Type, Content-Length, X-User"
重启elasticsearch
安装kibana下载地址
https://www.elastic.co/guide/en/kibana/5.1/targz.html
下载完成以后上传到 /opt/install
tar -zxvf kibana-5.1.2-linux-x86_64.tar.gz
然后去bin文件夹开启