win10 安装ElasticSearch/es的Head插件

(一)从地址:https://nodejs.org/en/download/ 下载相应系统的msi,双击安装

 

 

 (二)安装完成用cmd进入安装目录执行 node -v可查看版本号

 (三)执行 npm install -g grunt-cli 安装grunt ,安装完成后执行grunt -version查看是否安装成功,会显示安装的版本号

 (四)开始安装head

1.在https://github.com/mobz/elasticsearch-head中下载head插件,选择下载zip

 2.解压到指定文件夹下,E:\java\elasticsearch-head-master\

 3.在E:\java\elasticsearch-head-master\ 下执行npm install 如下

npm istall 报错:phantomjs-prebuilt@2.1.16 install: `node install.js`

解决办法: npm -g install phantomjs-prebuilt@2.1.16 --ignore-script

如果npm instal不成功重新安装grunt。

4.安装完成后执行grunt server 或者npm run start 运行head插件,成功如下

 

 5.浏览器下访问http://localhost:9100/

 

其他:集权健康值未连接:elasticsearch/修改config/elasticsearch.yml 文件 ,添加配置:

action.destructive_requires_name: true
http.cors.enabled: true 
http.cors.allow-origin: "*"
http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type

常见问题之index_not_found_exception
问题分析:
这是因为Elasticsearch默认安装时禁用了自动创建索引的功能。在action.auto_create_index选项中没有配置test_*样式的索引自动创建条目。

解决方法
1.关闭已经运行的Elasticsearch;
2.在$ES_HOME\config中打开elasticsearch.xml配置文件
3.在action.auto_create_index选项后增加“,test_”的内容,以匹配索引的自动创建;或者直接将action.auto_create_index的值修改为“”。
4.重新启动elasticsearch。

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值