1.安装
docker pull elasticsearch lastest
2.启动
启动的的时候也要指定版本
docker run --name elasticsearch -d -e "discovery.type=single-node" -e ES_JAVA_OPTS="-Xms512m -Xmx512m" -e "discovery.type=single-node" -p 9200:9200 -p 9300:9300 elasticsearch:7.12.0
3.检测
curl localhost:9200
{ "name" : "11d4fa694353", "cluster_name" : "docker-cluster", "cluster_uuid" : "8VsJcATYTeShVY0hHR4iZA", "version" : { "number" : "7.12.0", "build_flavor" : "default", "build_type" : "docker", "build_hash" : "78722783c38caa25a70982b5b042074cde5d3b3a", "build_date" : "2021-03-18T06:17:15.410153305Z", "build_snapshot" : false, "lucene_version" : "8.8.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)