1. 下载安装nodejs
下载地址:https://nodejs.org/zh-cn/
2. 配置elasticsearch
在conf/elasticsearch.yml最后加上
http.cors.enabled: true
http.cors.allow-origin: "*"
注:冒号后面有一个空格
3. 下载elasticsearch-head-master
Github地址:https://github.com/mobz/elasticsearch-head
将所有文件打包下载到本地,并解压
打开命令行,进入到elasticsearch-head根目录
D:\elasticsearch-head-master\elasticsearch-head-master>
执行命令npm install -g grunt-cli 对elasticsearch-head进行构建
D:\elasticsearch-head-master\elasticsearch-head-master> npm install -g grunt-cli
构建完成后,再执行npm install 命令进行安装
D:\elasticsearch-head-master\elasticsearch-head-master>npm install
最后执行命令grunt server启动 elasticsearch-head
D:\elasticsearch-head-master\elasticsearch-head-master>grunt server
访问localhost:9100,可以成功访问则安装成功
本文档详细介绍了在Windows系统中安装和配置Elasticsearch-Head的步骤。首先,需要从官方地址下载并安装Node.js。然后,在Elasticsearch的配置文件elasticsearch.yml中启用跨域请求。接着,从GitHub上克隆或下载elasticsearch-head-master项目,解压缩后在命令行中执行npm安装和构建命令。最后,通过grunt server启动服务,访问localhost:9100即可验证安装是否成功。
969

被折叠的 条评论
为什么被折叠?



