docker安装elasticsearch

docker run -p 9200:9200 -p 9300:9300 --name elasticsearch \
-e "discovery.type=single-node" \
-e "cluster.name=elasticsearch" \
-v /opt/docker/elasticsearch/plugins:/usr/share/elasticsearch/plugins \
-v /opt/docker/elasticsearch/data:/usr/share/elasticsearch/data \
-d elasticsearch:7.6.1

 

上一篇:es查询


下一篇:ElasticSearch快速使用,基本索引创建-增加type-mapping-插入数据