1. 下载相关安装包 * **下载最新的Elasticsearch** >[info]打开网址 [https://www.elastic.co/cn/downloads/elasticsearch](https://www.elastic.co/cn/downloads/elasticsearch) 选择window版本[ https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.2-windows-x86_64.zip](https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.2-windows-x86_64.zip) ![](https://img.kancloud.cn/31/38/313873ea1890b73a859200d301f266fd_918x630.png) ***** * **下载的kibana** >[info] https://www.elastic.co/cn/downloads/kibana >注意kibana版本要和Elasticsearch保持一致 这里用的是7.10.2 ! ![](https://img.kancloud.cn/56/c6/56c6e346c59f2d31db1705d3449ca94e_1075x576.png) ***** * **下载es-header** >[info]https://github.com/mobz/elasticsearch-head [https://github.com/mobz/elasticsearch-head/archive/v5.0.0.zip](https://github.com/mobz/elasticsearch-head/archive/v5.0.0.zip) ***** >[waring] 如果下载速度太慢推荐用迅雷下载 2. **安装elasticsearch kibana elasticsearch-head** 解压压缩文件 elasticsearch-7.10.2-windows-x86_64.zip kibana-7.10.2-windows-x86_64.zip elasticsearch-head-5.0.0.zip >[info]修改配置文件 elasticsearch.yml 添加 http.cors.enabled: true http.cors.allow-origin: "*" http.cors.allow-headers: Content-Type,Accept,Authorization, x-requested-with * 启动elasticsearch > cmd 进入elasticsearch-7.10.2 bin目录 E:\ESservice\elasticsearch-7.10.2\bin > 执行elasticsearch.bat 启动 elasticsearch ![](https://img.kancloud.cn/a1/21/a121fc780e7d8b201386fdbad72a6568_947x499.png) >[info] elasticsearch-service.bat 命令参数 install: 安装Elasticsearch服务 remove: 删除已安装的Elasticsearch服务(如果启动则停止服务) start: 启动Elasticsearch服务(如果已安装) stop: 停止服务(如果启动) manager:启动GUI来管理已安装的服务 >[info]浏览器打开 [http://127.0.0.1:9200/](http://127.0.0.1:9200) ``` ~~~ { "name" : "DESKTOP-K4R6HTC", "cluster_name" : "elasticsearch", "cluster_uuid" : "qQezcHcuSSyp8j8KURtjAA", "version" : { "number" : "7.10.2", "build_flavor" : "default", "build_type" : "zip", "build_hash" : "747e1cc71def077253878a59143c1f785afa92b9", "build_date" : "2021-01-13T00:42:12.435326Z", "build_snapshot" : false, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } ~~~ ``` ***** * **安装kibana** >[info] 修改配置文件config/kibana.yml 取消注释 > elasticsearch.hosts: ["http://localhost:9200"] > i18n.locale: "zh-CN" cmd进入kibana bin目录 E:\ESservice\kibana-7.10.2-windows-x86_64\bin 执行 kibana.bat 启动 kibana ![](https://img.kancloud.cn/c3/f9/c3f9601ec0ab796bd4a6191e6607b482_684x108.png) ***** * **安装elasticsearch-head** >[danger] 安装elasticsearch-head需要安装 node环境 node下载 https://nodejs.org/en/download/ cmd 进入 E:\ESservice\elasticsearch-head-5.0.0 ``` npm -v #来测试是否成功安装 npm install cnpm -g --registry=https://registry.npm.taobao.org #切换淘宝镜像 cnpm -v 来测试是否成功安装 cnpm install cnpm run start ``` ![](https://img.kancloud.cn/78/df/78df5993a85dd4fa0d61ead1ac1f8d28_589x144.png) 打开路径[http://localhost:9100](http://localhost:9100)