码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • windows 搭建elasticsearch环境


    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
    
    • 1
    • 2

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

    插件安装

    安装插件之前需要安装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
    
    
    • 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
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57

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

    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
    
    • 1
    • 2

    删除进程

    ps grep|elasticsearch
    
    • 1
  • 相关阅读:
    基于Python和mysql开发的看图猜成语微信小程序(源码+数据库+程序配置说明书+程序使用说明书)
    基于PHP+MySQL菜品食谱美食网站的设计与实现
    小程序OCR身份证识别
    常见的海量数据面试题总结
    关于单机流程编排技术——docker compose安装使用的问题
    Verilog的奇技淫巧[更新中]
    【力扣hot100】刷题笔记Day7
    【前端】弹球特效(重力模拟)
    java二手车商城计算机毕业设计MyBatis+系统+LW文档+源码+调试部署
    Java I/O(4):AIO和NIO中的Selector
  • 原文地址:https://blog.csdn.net/A2830563/article/details/127774095
  • 最新文章
  • 沪漂五周年了:我越来越迷茫了
    Agentic Skill Routing 实战:别再把所有 Skill 塞进 AI Agent 上下文
    MySQL-Seconds_behind_master的精度误差
    [MAF预定义ChatClient中间件-03]CachingChatClient——利用缓存省钱省时间
    AI的至暗历史:从万众期待到被政府撤资,AI的两次死亡徘徊
    Agent OS :五种驯服不确定性的范式
    PortSwigger SQL注入LAB11
    数据库即时编译JIT
    [Begin]AI Learn Data Day 0
    深度学习进阶(二十七)现代 LLM 的核心架构设计其二:SwiGLU
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
小工具 小游戏
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1

京公网安备 11010502049817号