docker pull elasticsearch:7.6.22.创建持久化目录
mkdir -p /home/weichenglong/workspace/elasticsearch cd /home/weichenglong/workspace/elasticsearch mkdir data mkdir logs3.运行容器
节点探测类型(discovery.type)设置为 single-node 表示不开启集群模式。
docker run -d --name=es7 --restart=always -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -v /home/weichenglong/workspace/elasticsearch/data:/usr/share/elasticsearch/data -v /home/weichenglong/workspace/elasticsearch/logs:/usr/share/elasticsearch/logs elasticsearch:7.6.2
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)