From e68b87503ee1081c6393e353ee46317e2249f7ed Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Mon, 23 Jun 2025 13:41:03 +0800 Subject: [PATCH] 'commit' --- .../1、Elasticsearch安装配置文档.md | 74 ++----------------- Doc/RAG搭建/参考文档.txt | 1 + 2 files changed, 9 insertions(+), 66 deletions(-) create mode 100644 Doc/RAG搭建/参考文档.txt diff --git a/Doc/RAG搭建/1、Elasticsearch安装配置文档.md b/Doc/RAG搭建/1、Elasticsearch安装配置文档.md index a0789d5c..bc15b8d4 100644 --- a/Doc/RAG搭建/1、Elasticsearch安装配置文档.md +++ b/Doc/RAG搭建/1、Elasticsearch安装配置文档.md @@ -1,10 +1,6 @@ ### 一、安装 $ES$ -**1、参考文档** - -```sh -https://blog.csdn.net/weixin_68792404/article/details/147554090 -``` +**1、下载安装包** 进入官网下载$linux$安装包 [下载地址](https://www.elastic.co/cn/downloads/elasticsearch) @@ -115,70 +111,16 @@ jv9h8uwRrRxmDi1dq6u8 ### 二、安装$ik$中文分词插件 -注意 ik 分词插件的版本要和 es 的版本一致 - ```bash -[root@63d697bd738f elasticsearch]# pwd -/usr/share/elasticsearch -[root@63d697bd738f elasticsearch]# ./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.9.3/elasticsearch-analysis-ik-7.9.3.zip --> Installing https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.9.3/elasticsearch-analysis-ik-7.9.3.zip --> Downloading https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.9.3/elasticsearch-analysis-ik-7.9.3.zip -[=================================================] 100%?? -@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -@ WARNING: plugin requires additional permissions @ -@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -* java.net.SocketPermission * connect,resolve -See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html -for descriptions of what these permissions allow and the associated risks. - -Continue with installation? [y/N]y --> Installed analysis-ik -[root@63d697bd738f elasticsearch]# ./bin/elasticsearch-plugin list -analysis-ik -[root@63d697bd738f elasticsearch]# -``` - -## 安装 Kibana - -- 拉取镜像 +# 安装分词插件 +./bin/elasticsearch-plugin install https://get.infini.cloud/elasticsearch/analysis-ik/9.0.2 -```bash -docker pull kibana:7.9.3 -``` - -- 创建容器 - -```bash -# 相关参数 -# 设置 es 请求地址 -# -e ELASTICSEARCH_HOSTS=http://localhost:9200 -# 设置汉化 -# -e I18N_LOCALE=zh-CN -# 设置时区,否则查询时间需要加 8 个小时 -# -e TZ='Asia/Shanghai' - -docker run -d --name alex-kibana \ --p 5601:5601 \ ---net alex-network \ --e ELASTICSEARCH_HOSTS=http://alex-es:9200 \ --e I18N_LOCALE=zh-CN \ -kibana:7.9.3 +# 检查插件列表 +[elauser@maxkb elasticsearch-9.0.2]$ ./bin/elasticsearch-plugin list +analysis-ik ``` -- 也可以直接去编辑 kibana 的配置文件 +![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/{year}/{month}/{md5}.{extName}/20250623133924355.png) -```bash -# 编辑配置文件 -vi /usr/share/kibana/config/kibana.yml +## 三、安装 $Kibana$ -# 适当修改以下配置,因为我们已经将 alex-es 容器和 alex-kibana 容器同时都加入到了 alex-network 网络中,因此这里,我们可以直接通过容器名称进行访问到容器对应的 IP 地址 -elasticsearch.hosts: [ "http://alex-es:9200" ] -i18n.locale: zh-CN -``` - -- 测试是否安装成功 - -```bash -# 浏览器请求 -127.0.0.1:5601 -``` \ No newline at end of file diff --git a/Doc/RAG搭建/参考文档.txt b/Doc/RAG搭建/参考文档.txt new file mode 100644 index 00000000..b1e165d6 --- /dev/null +++ b/Doc/RAG搭建/参考文档.txt @@ -0,0 +1 @@ +https://blog.csdn.net/weixin_68792404/article/details/147554090 \ No newline at end of file