elasticsearch-head

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

git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head

修改 elasticsearch-head-master\Gruntfile.js
在server里面加上
hostname: '*'

在 proxy里面的index 修改 localhost

npm install
npm run start

后台运行

npm run start &
在elasticsearch中启用CORS
如果不作为elasticsearch的插件运行(甚至不能从版本5运行),则必须在elasticsearch中启用CORS,否则您的浏览器将拒绝看似不安全的请求。

在elasticsearch配置中;

加 http.cors.enabled: true
http.cors.allow-origin: "*"
您还必须设置,http.cors.allow-origin因为默认情况下不允许原点。http.cors.allow-origin: "*"是有效值,但它被视为安全风险,因为您的群集可以从任何地方开放交叉。

语言修改
在这个位置elasticsearch-head/_site/lang

替换 en_string.js 成想要的语言

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值