Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Docker easily builds es+kibana environment

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

In this trial, both es and kibana are version 6.6.2 (to prevent differences between different versions)

Docker run-d-- name es-p 9201 docker.elastic.co/elasticsearch/elasticsearch:6.6.2 9200-p 9301 discovery.type=single-node 9300-e

Test whether the es startup is successful on this machine

Curl localhost:9201

If the following json file appears, the startup is successful

{"name": "elasticsearch-0", "cluster_name": "search-app", "cluster_uuid": "FAeqYqKKTgCTd_r_OgYzrg", "version": {"number": "6.6.2", "build_flavor": "default", "build_type": "tar", "build_hash": "04711c2" "build_date": "2018-09-26T13:34:09.098244Z", "build_snapshot": false, "lucene_version": "7.4.0", "minimum_wire_compatibility_version": "5.6.0", "minimum_index_compatibility_version": "5.0.0"}, "tagline": "You Know" For Search "} docker run-it-d-e ELASTICSEARCH_URL=http:// Native ip:9201-- name kibana_test-p 5601 ELASTICSEARCH_URL=http:// 5601 docker.elastic.co/kibana/kibana:6.6.2

Add ELASTICSEARCH_URL environment variable (will overwrite the configuration in es's configuration file)

The native ip here refers to the ip of your docker host, which is not the ip of the container, nor can it be written as localhost,localhost will be resolved to the ip address in the container, which cannot be accessed.

Open a browser to access ip+5601

If there is a Kibana server is not ready yet, just visit it later. If it still doesn't work later, it should be that ELASTICSEARCH_URL is not written correctly.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 223

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report