「ElasticSearch」ElasticSearch安装
1. Docker 安装ElasticSearch
1docker search elasticsearch
1docker pull elasticsearch # 默认会拉取 latest 版本
2docker pull elasticsearch:6.8.11 # https://hub.docker.com/ 版本查找
3docker images # 查看本地images
1 docker run -d --name elasticserarch_1 -p 9200:9200 -p 9300:9300 elasticsearch:6.8.11
1docker ps
1curl http://devbox:9200/
2. docker 安装Cerebro
1docker search cerebro # test
1docker pull lmenezes/cerebro
1docker run -d -p 9002:9000 \
2--restart=unless-stopped \
3--name cerebro \
4-v /etc/localtime:/etc/localtime \
5-v cerebro:/opt/cerebro \
6-h cerebro \
7lmenezes/cerebro
86f036de7c87672903c88f6590d40d052e8c7b79767e410e35b1f2162c268b63f
docker run 参数说明
https://www.runoob.com/docker/docker-run-command.html?ivk_sa=1023345p
访问http://ip:9002
并配置集群
配置完成后点击 connect
, 下图中已经建立好两个Index
1docker run -id
https://www.runoob.com/docker/docker-run-command.html https://blog.csdn.net/qq_19381989/article/details/102781663
1curl