使用Docker快速搭建ElasticSearch

超级搜索ElasticSearch 使用文档
超级搜索ElasticSearch 使用文档

ElasticSearch 8.x

docker stop elasticsearch
docker rm elasticsearch
docker run -d --name elasticsearch \
  -p 9200:9200 -p 9300:9300 \
  -e "discovery.type=single-node" \
  -e "xpack.security.enabled=true" \
  -e "ELASTIC_PASSWORD=123456" \
  elasticsearch:8.1.2

ElasticSearch 7.x

docker stop elasticsearch
docker rm elasticsearch
docker run -d --name elasticsearch \
  -p 9200:9200 -p 9300:9300 \
  -e "discovery.type=single-node" \
  -e "xpack.security.enabled=true" \
  -e "ELASTIC_PASSWORD=123456" \
  elasticsearch:7.17.2

ElasticSearch 6.x

docker stop elasticsearch
docker rm elasticsearch
docker run -d --name elasticsearch \
  -p 9200:9200 -p 9300:9300 \
  -e "discovery.type=single-node" \
  -e "xpack.security.enabled=true" \
  -e "ELASTIC_PASSWORD=123456" \
  elasticsearch:6.8.23
更新: 2022-12-12 14:57:46
QQ
微信
客服