启动 Elasticsearch
[root@localhost ~]#
docker run -d --name elasticsearch01 -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.6.2
进入
[root@localhost ~]#
docker run -it 5acf0e8da90b /bin/bash
[root@localhost ~]# docker run -it 5acf0e8da90b /bin/bash
root@8bbc7d7c2ecd:/usr/share/elasticsearch#
测试验证
Linux 中可以使用 curl
命令模拟网页访问:
[root@localhost ~]#
curl localhost:9200
{
"name" : "e6d7fe80cf29",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "MIfPING6SFGVR88knFCf6w",
"version" : {
"number" : "7.6.2",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
"build_date" : "2020-03-26T06:34:37.794943Z",
"build_snapshot" : false,
"lucene_version" : "8.4.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
标签:9200,部署,version,Elasticsearch,build,docker,root,localhost
From: https://www.cnblogs.com/muxinq/p/18218673