docker 安装 ElasticSearch-head


2个月前 139次点击 来自 Linux

标签: Docker

mobz/elasticsearch-head

A web front end for an elastic search cluster
Screenshot time!

比较推荐的方式是使用Chrome插件和Docker方式安装:

Running as a Chrome extension

  • Install ElasticSearch Head from the Chrome Web Store.
  • Click the extension icon in the toolbar of your web browser.
  • Note that you don’t need to enable CORS with this method.

Running with docker

  • for Elasticsearch 5.x: docker run -p 9100:9100 mobz/elasticsearch-head:5
  • for fans of alpine there is mobz/elasticsearch-head:5-alpine
  • open http://localhost:9100/
docker pull mobz/elasticsearch-head:5
docker run -d -p 9100:9100 docker.io/mobz/elasticsearch-head:5

修改配置

docker exec -it {elasticsearch容器} bash

找到config下elasticsearch.yml添加:

# 开启跨域
http.cors.enabled: true
# 所有人访问
http.cors.allow-origin: "*"

重启

docker restart {elasticsearch容器}

Made with in Shangrao,China By Devler.

Copyright © Devler 2012 - 2022

赣ICP备19009883号-1

Top ↑