系列文章目录
前言
配一次,真觉得方面
dockeres_17">一、 docker运行es
docker pull elasticsearch:7.17.0
# mkdir -p /opt/es/config
# mkdir -p /opt/es/data
# echo "http.host: 0.0.0.0" >> /opt/es/config/elasticsearch.yml
# docker run --name elasticsearch -p 9200:9200 -p 9300:9300 \
-e "discovery.type=single-node" \
-e ES_JAVA_OPTS="-Xms64m -Xmx512m" \
-v /opt/es/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml \
-v /opt/es/data:/usr/share/elasticsearch/data \
-v /opt/es/plugins:/usr/share/elasticsearch/plugins \
-d elasticsearch:7.17.0
[root@vm31 ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
30887061f96e elasticsearch:7.17.0 "/bin/tini -- /usr/l…" 9 hours ago Up 9 hours 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 0.0.0.0:9300->9300/tcp, :::9300->9300/tcp elasticsearch
dockerkibina_44">二、 docker运行kibina
docker pull kibana:7.17.0
docker run --name kibana -e ELASTICSEARCH_HOSTS=http://vm31:9200 -p 5601:5601 \
-d kibana:7.17.0