通过docker简易部署es加kibana

docker run -d --name elasticsearch_7_12 -p 29200:9200 -p 29300:9300 -v /fp/docker_data/es/config/elasticsearch.yml:/opt/elasticsearch/config/elasticsearch.yml -v /fp/docker_data/es/data:/opt/elasticsearch/data -v /fp/docker_data/es/plugins:/opt/elasticsearch/plugins -e discovery.type=single-node elasticsearch:7.12.0


docker run -d --name kibana7_12 -p 25601:5601 -e ELASTICSEARCH_HOSTS=http://es_server_ip:29200 kibana:7.12.0

可通过以上命令进行简易部署 es加kib

 

elasticsearch.yml内容为

http.host: 0.0.0.0

posted @ 2023-08-03 16:02  菊花茶  阅读(20)  评论(0编辑  收藏  举报