Windows10怎么访问Elasticsearch Head插件

2023-04-19,,

这篇文章主要介绍“Windows10怎么访问Elasticsearch Head插件”的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇“Windows10怎么访问Elasticsearch Head插件”文章能帮助大家解决问题。

一、安装nodejs
二、安装grunt
npm install -g grunt-cli
head插件的源码git clone下来:
git clone git://github.com/mobz/elasticsearch-head.git
head/Gruntfile.js:
添加hostname属性,设置为*
head/_site/app.js

this.base_uri = this.config.base_uri || this.prefs.get("app-base_uri") || "http://localhost:9200";

把localhost修改成你es的服务器地址。
而后在head源码目录中,执行npm install 下载的包:

image.png

npm install
最后,在head源代码目录下启动nodejs:
grunt server
如图启动成功

image.png

这个时候,访问http://localhost:9100即可以访问head插件了

关于“Windows10怎么访问Elasticsearch Head插件”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识,可以关注本站行业资讯频道,小编每天都会为大家更新不同的知识点。

《Windows10怎么访问Elasticsearch Head插件.doc》

下载本文的Word格式文档,以方便收藏与打印。