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

 

posted @ 2020-03-31 16:57  方大帝的博客  阅读(264)  评论(0编辑  收藏  举报