windows 搭建elasticsearch环境
创始人
2024-01-25 12:57:47
0

Elasticsearch 学习之路

  • 安装 Elastic Search
    • 下载及安装
    • 启动 Elastic search
    • 插件安装
    • 如何在开发机上运行多个实例

安装 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:
#   .jar <-- classes, resources, dependencies
#   .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

相关内容

热门资讯

喜欢穿一身黑的男生性格(喜欢穿... 今天百科达人给各位分享喜欢穿一身黑的男生性格的知识,其中也会对喜欢穿一身黑衣服的男人人好相处吗进行解...
发春是什么意思(思春和发春是什... 本篇文章极速百科给大家谈谈发春是什么意思,以及思春和发春是什么意思对应的知识点,希望对各位有所帮助,...
网络用语zl是什么意思(zl是... 今天给各位分享网络用语zl是什么意思的知识,其中也会对zl是啥意思是什么网络用语进行解释,如果能碰巧...
为什么酷狗音乐自己唱的歌不能下... 本篇文章极速百科小编给大家谈谈为什么酷狗音乐自己唱的歌不能下载到本地?,以及为什么酷狗下载的歌曲不是...
华为下载未安装的文件去哪找(华... 今天百科达人给各位分享华为下载未安装的文件去哪找的知识,其中也会对华为下载未安装的文件去哪找到进行解...
怎么往应用助手里添加应用(应用... 今天百科达人给各位分享怎么往应用助手里添加应用的知识,其中也会对应用助手怎么添加微信进行解释,如果能...
家里可以做假山养金鱼吗(假山能... 今天百科达人给各位分享家里可以做假山养金鱼吗的知识,其中也会对假山能放鱼缸里吗进行解释,如果能碰巧解...
四分五裂是什么生肖什么动物(四... 本篇文章极速百科小编给大家谈谈四分五裂是什么生肖什么动物,以及四分五裂打一生肖是什么对应的知识点,希...
一帆风顺二龙腾飞三阳开泰祝福语... 本篇文章极速百科给大家谈谈一帆风顺二龙腾飞三阳开泰祝福语,以及一帆风顺二龙腾飞三阳开泰祝福语结婚对应...
美团联名卡审核成功待激活(美团... 今天百科达人给各位分享美团联名卡审核成功待激活的知识,其中也会对美团联名卡审核未通过进行解释,如果能...