【Elasticsearch】第3篇:Elasticsearch-head插件安装
文章目录
为什么要使用elasticsearch-head
访问http://127.0.0.1:9200/看的的web界面并不是很友好,此时我可以使用elasticsearch-head插件来提供友好的web界面。
安装elasticsearch-head插件
1.登录github.com搜索elasticsearch-head然后下载:
wget https://github.com/mobz/elasticsearch-head/archive/master.zip
2.检查是否安装了node.js,如果没有安装,在官网上现在.pkg文件安装就可以了
npm -install
3.运行elasticsearch-head
npm run start
(1)启动日志:
(2)访问http://localhost:9100进入web界面:
4.在web界面上看到的集群未连接,此时要进行跨越请求配置:
cd /Users/shifeifei/Software/elasticsearch-6.2.4/config
vim elasticsearch.yml
文件尾部添加:
http.cors.enabled: true
http.cors.allow-origin: "*"
重启elastiasearch服务,刷新http://localhost:9100页面
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论