乐趣区

关于jeecg-boot:Docker安装elasticsearch-770

  1. pull 镜像
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.7.0
  1. 运行 elasticsearch

docker run –name=elastic770 -p 9200:9200 -p 9300:9300 -e “discovery.type=single-node” -v /var/docker/elastic/data:/data docker.elastic.co/elasticsearch/elasticsearch:7.7.0

测试环境加上 -e “discovery.type=single-node”

3、装置 ik 分词插件

docker exec -it elastic770 /bin/bash ./bin/elasticsearch-plugin install https://jeecgos.oss-cn-beijin…

4、其余配置

创立 elasticsearch.yml

cluster.name: "elasticsearch7.7.0"
network.host: 0.0.0.0
node.name: node0
http.host: 0.0.0.0
http.cors.enabled: true
http.cors.allow-origin: "*"

拷贝到 docker 容器中,笼罩原有配置文件

docker cp elasticsearch.yml  elastic770:/usr/share/elasticsearch/config

点击 http://127.0.0.1:9200 查看 ES 状态

5、装置可视化管理工具

docker run -p 9800:9800 -d --link elastic770:hd containerize/elastichd

关上 http://localhost:9800。默认未连贯,手工批改连贯为 http://hd:9200

退出移动版