docker network create elasticsearch_network安装Elasticsearch
1.安装node1 docker run --name elastic-node1 --net=elasticsearch_network -p 9200:9200 -e ELASTICSEARCH_CLUSTER_NAME=elasticsearch-cluster -e ELASTICSEARCH_CLUSTER_HOSTS=elastic-node1,elastic-node2 -e ELASTICSEARCH_NODE_NAME=elastic-node1 bitnami/elasticsearch:7.16.3 2.安装node2 docker run --name elastic-node2 --link elastic-node1:elastic-node1 --net=elasticsearch_network -e ELASTICSEARCH_CLUSTER_NAME=elasticsearch-cluster -e ELASTICSEARCH_CLUSTER_HOSTS=elastic-node1,elastic-node2 -e ELASTICSEARCH_NODE_NAME=elastic-node2 bitnami/elasticsearch:7.16.3安装kibana
docker run -d -p 5601:5601 --name kibana --net=elasticsearch_network -e KIBANA_ELASTICSEARCH_URL=elastic-node1 bitnami/kibana:7.16.3效果
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)