1、head 插件Github地址:https://github.com/mobz/elasticsearch-head 

2、npm install

3、npm run start

由于head插件监听的端口是9100,而elasticsearch的REST接口的端口是9200,

因此需要设置elasticsearch允许跨域访问,才能使用head插件,

编辑elasticsearch安装目录下的config目录下的elasticsearch.yml文件,添加如下2行配置:

http.cors.enabled: true
http.cors.allow-origin: "*"

 然后 打开 http://localhost:9100/ 访问插件

 

相关文章:

  • 2021-11-22
  • 2021-11-22
  • 2021-06-17
  • 2021-12-12
  • 2021-12-16
  • 2021-06-22
猜你喜欢
  • 2021-09-19
  • 2021-12-25
  • 2021-05-15
  • 2021-12-15
  • 2022-12-23
  • 2022-01-06
  • 2021-11-22
相关资源
相似解决方案