windows 搭建elasticsearch环境

安装 Elastic Search

下载及安装

  1. 官方下载地址
  2. 下载并解压

启动 Elastic search

双击bin\elasticsearch.bat 启动
启动成功之后就会在localhost:9200看到相应的数据信息

控制台中文乱码, 需要在config/jvm.options文件中添加

# ensure UTF-8 encoding by default (e.g. filenames)
-Dfile.encoding=GBK

在启动过程中可能会出现一些问题, 这里有解决方法地址

插件安装

安装插件之前需要安装node.js.
插件版本匹配信息
插件安装

IK分词器下载地址

issue: Plugin [kibana-8.5.0] is missing a descriptor properties file.
这是由于版本不匹配导致的错误
我的elasticsearch version: 8.4.3
kibana version: 8.4.3
在启动过程中可能会找properties文件,在8.4.3版本中并没有这个文件, 文件名为plugin-descriptor.properties,可以copy一下:

# Elasticsearch plugin descriptor file
# This file must exist as 'plugin-descriptor.properties' at
# the root directory of all plugins.
#
# A plugin can be 'site', 'jvm', or both.
#
### example site plugin for "foo":
#
# foo.zip <-- zip file for the plugin, with this structure:
#   _site/ <-- the contents that will be served
#   plugin-descriptor.properties <-- example contents below:
#
# site=true
# description=My cool plugin
# version=1.0
#
### example jvm plugin for "foo"
#
# foo.zip <-- zip file for the plugin, with this structure:
#   <arbitrary name1>.jar <-- classes, resources, dependencies
#   <arbitrary nameN>.jar <-- any number of jars
#   plugin-descriptor.properties <-- example contents below:
#
# jvm=true
# classname=foo.bar.BazPlugin
# description=My cool plugin
# version=2.0.0-rc1
# elasticsearch.version=2.0
# java.version=1.7
#
### mandatory elements for all plugins:
#
# 'description': simple summary of the plugin
description=Kibana for Elasticsearch
#
# 'version': plugin's version
version=8.4.3
#
# 'name': the plugin name
name=kibana
#
# 'classname': the name of the class to load, fully-qualified.
classname=org.elasticsearch.plugin.kibana
#
# 'java.version' version of java the code is built against
# use the system property java.specification.version
# version string must be a sequence of nonnegative decimal integers
# separated by "."'s and may have leading zeros
java.version=1.8
#
# 'elasticsearch.version' version of elasticsearch compiled against
# You will have to release a new version of the plugin for each new
# elasticsearch release. This version is checked when the plugin
# is loaded so Elasticsearch will refuse to start in the presence of
# plugins with the incorrect elasticsearch.version.
elasticsearch.version=8.4.3

如何在开发机上运行多个实例

bin/elasticsearch -E node.name=node1 -E cluster.name=geedtime -E path.data=node1_data
bin/elasticsearch -E node.name=node2 -E cluster.name=geedtime -E path.data=node2_data

删除进程

ps grep|elasticsearch
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在Windows搭建Elasticsearch(ES),你可以按照以下步骤进行操作: 1. 首先,下载ES的安装包。你可以从官方网站下载,也可以从华为镜像下载,链接为:https://mirrors.huaweicloud.com/elasticsearch/?C=N&O=D \[3\]。 2. 下载完成后,解压缩安装包到你想要安装ES的目录。 3. 打开命令提示符,进入ES的安装目录。 4. 运行ES,输入以下命令: ``` bin\elasticsearch.bat ``` 5. ES会开始启动,你可以在命令提示符中看到启动日志。 6. 等待ES完全启动后,你可以通过访问http://localhost:9200来验证ES是否成功运行。 7. 如果你还想安装Kibana来可视化管理ES,你可以从官方网站下载Kibana安装包,链接为:https://www.elastic.co/cn/downloads/kibana \[2\]。 8. 下载完成后,解压缩安装包到你想要安装Kibana的目录。 9. 进入Kibana的安装目录,双击bin/kibana.bat来运行Kibana。 10. Kibana会开始启动,你可以在命令提示符中看到启动日志。 11. 等待Kibana完全启动后,你可以通过访问http://localhost:5601来访问Kibana的管理界面。 这样,你就成功在Windows搭建了ES和Kibana。希望对你有帮助! #### 引用[.reference_title] - *1* *2* *3* [Elasticsearch 1 (linux下搭建es环境windows搭建es环境、head安装、Kibana安装)](https://blog.csdn.net/a__int__/article/details/111593162)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值