1.新增elasticsearch检索服务
2.登录虚拟机拉取elasticsearch镜像
Install Elasticsearch with Docker | Elasticsearch Guide [7.15] | Elastic
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.15.2
3.创建目录
mkdir -p /data1/dockerMatchDirectory/elasticsearch/config
mkdir -p /data1/dockerMatchDirectory/elasticsearch/data
4. 设置可以被远程机器访问
echo "http.host: 0.0.0.0" &g