1.安装docker
yum install docker
2.启动docker
systemctl start docker
查看docker版本: docker -v
之后只要启动机器就会自动开启: systemctl enable docker
查询elasticsearch : docker search elasticsearch
2.下载elasticsearch
docker image pull delron/elasticsearch-ik:2.4.6-1.0
查询elasticsearch的信息
docker images
安装:docker run -e ES_JAVA_OPTS="-Xms256m -Xms256m" -d -p 9200:9200 -p 9300:9300 --name ES01 095b6487fb77 注:095b6487fb77是elasticsearch的ID
查询安装的docker:docker ps
原文地址:https://www.cnblogs.com/fengzifengfeng/p/11337213.html
时间: 2024-11-15 06:17:05