Docker安装Elasticsearch
作者:互联网
1.在docker hub中搜索和查看对应的版本 https://hub.docker.com
2.在docker中获取对应的镜像
docker pull elasticsearch:7.13.2
3.运行镜像
docker run --name elasticsearch -d -e ES_JAVA_OPTS="-Xms512m -Xmx512m" -e "discovery.type=single-node" -p 9200:9200 -p 9300:9300 elasticsearch:7.13.2
##ES_JAVA_OPTS的默认值比较大,会导致Es启动不起来
4.访问9200端口,看是否能够出现 You Know, for Search
标签:9200,hub,7.13,9300,elasticsearch,Elasticsearch,Docker,安装,docker 来源: https://www.cnblogs.com/HTLucky/p/14902702.html