随笔 - 408  文章 - 4 评论 - 11 阅读 - 30万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

  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-beijing.aliyuncs.com/eoafile/elasticsearch-analysis-ik-7.7.0.zip

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

posted on   zhangdaiscott  阅读(532)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」
历史上的今天:
2019-07-05 Jeecg-Boot前后端分离,针对敏感数据,加密传递方案
点击右上角即可分享
微信分享提示