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

ElasticSearch head插件安装与配置

时间:2019-09-10 11:38:32      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:允许   ast   led   nbsp   arc   style   alt   inf   技术   

技术图片

 

 

 

下载

下载地址:https://github.com/mobz/elasticsearch-head

 

安装

1. 下载到本地

git clone

 

2. 安装 grunt

npm install -g grunt-cli

 

3. 引入依赖

npm install 

 

4. 启动 head 插件

grunt server

 

配置 ElasticSearch 

在 ES 目录下 config/elasticsearch.yml  添加配置允许跨域访问

# 允许跨域访问
http.cors.enabled: true
http.cors.allow-origin: "*"

 

访问 http://127.0.0.1:9100/ 配置成功

技术图片

 

ElasticSearch head插件安装与配置

标签:允许   ast   led   nbsp   arc   style   alt   inf   技术   

原文地址:https://www.cnblogs.com/zyulike/p/11496470.html

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