docker 启动ES命令
时间: 2023-11-11 09:08:10 浏览: 117
docker启动elasticsearch时内存不足问题及解决方法
5星 · 资源好评率100%
要启动Elasticsearch的Docker容器,可以使用以下命令:
docker run -p 9200:9200 -p 9300:9300 --name elasticsearch -e "discovery.type=single-node" -e "cluster.name=elasticsearch" -e ES_JAVA_OPTS="-Xms256m -Xmx256m" -v /Users/ggy/IdeaProjects/docker/elasticsearch/plugins:/usr/share/elasticsearch/plugins -v /Users/ggy/IdeaProjects/docker/elasticsearch/data:/usr/share/elasticsearch/data -d elasticsearch
阅读全文