【elasticsearch】windows安装运行.bat闪退问题

这篇具有很好参考价值的文章主要介绍了【elasticsearch】windows安装运行.bat闪退问题。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

目录

一、问题描述

二、问题排查

三、修改配置并运行成功

1、正确配置

2、运行成功


一、问题描述

        在根据下面链接进行windows安装,并使用默认localhost或者127.0.0.0 IP进行访问配置时,点击bin/elasticsearch.bat进行运行可以正常运行;

【elasticsearch】Windows安装

       但是,如果在config文件夹下的elasticsearch.yml文件中配置本机IP,就会在bin/elasticsearch.bat启动时出现闪退现象;下面是闪退配置:

# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: my-application
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: node-1
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 192.168.XX.XX
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, consult the network module documentation.

二、问题排查

        在bin目录下,按shift并右击鼠标进入窗口操作运行elasticsearch.bat:

elasticsearch.bat闪退,# Elasticsearch,elasticsearch,大数据,搜索引擎

elasticsearch.bat闪退,# Elasticsearch,elasticsearch,大数据,搜索引擎

         通过日志发现,少配置一项:

cluster.initial_master_nodes: ["node-1"]

三、修改配置并运行成功

1、正确配置

# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: my-application
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: node-1
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 192.168.XX.XX
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, consult the network module documentation.
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
#discovery.seed_hosts: ["host1", "host2"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["node-1"]
#
# For more information, consult the discovery and cluster formation module documentation.
#

2、运行成功

点击bin/elasticsearch.bat并查看运行成功页面:

elasticsearch.bat闪退,# Elasticsearch,elasticsearch,大数据,搜索引擎文章来源地址https://www.toymoban.com/news/detail-767677.html

到了这里,关于【elasticsearch】windows安装运行.bat闪退问题的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Elasticsearch 安装完ik之后闪退

    现象:我安装的是zip压缩包 没有安装ik之前es 可以重启起来,但是安装完ik之后突然重启不起来了 报错信息:Plugin [commons-codec-1.9.jar] is missing a descriptor properties file. 原因 我将ik包接压存储到es文件的plugins目录下,没用进行新建问价夹  导致一直不能重启成功,闪退。 查找原因

    2024年02月11日
    浏览(29)
  • Tomcat的startup.bat文件出现闪退问题

    对于双击Tomcat的startup.bat文件出现闪退问题,您提供的分析是正确的。主要原因是Tomcat需要Java Development Kit (JDK)的支持,而如果没有正确配置JAVA_HOME环境变量,Tomcat将无法找到JDK并启动,从而导致闪退。 以下是解决该问题的步骤: 配置JAVA_HOME环境变量: 确保您已经安装了JD

    2024年02月15日
    浏览(32)
  • Windows运行单个.bat文件或运行多个.bat文件

    首先创建一个.bat文件,例如 1.bat  ,进入文件编辑,输入你想做的指令,例如: 进入Anaconda虚拟环境,然后运行代码 CALL E:Anaconda3Scriptsactivate.bat E:Anaconda3 CALL conda activate you_name E: cd tensorrt python main.py 将以上代码输入到  1.bat  文件里, 注意修改路径 ,代码中的 E 是盘符号

    2024年02月05日
    浏览(36)
  • ElasticSearch8闪退

    点了.bat文件好几次,发现最后每次都是最后出现了一堆报错信息后一下就没了。 去ES安装目录下的logs文件夹中找到执行日志。 查看出错原因 报错内容为 是按照网上文档设置该节点为主节点的设置有问题。 由于下载的版本为8,去查找了官方文档Elasticsearch Guide 在ES8中设置主

    2023年04月08日
    浏览(27)
  • ElasticSearch 7.x现网运行问题汇集3

    某现网ElasticSearch 故障,很长时间unassgined_shards的数量都不减少。 先了解整体状态,使用Postman请求,如下几个请求命令: GET /_cat/indices GET /_cat/shards GET /_cluster/health GET /_cat/nodes?v GET /_cat/health?v GET /_cluster/allocation/explain POST /_cluster/reroute?retry_failed=true 恢复了部分,但是还是有

    2024年01月22日
    浏览(23)
  • ElasticSearch 7.x现网运行问题汇集1

    现网ElasticSearch health状态变为red,有分片无法assign。如下摘录explain的结果部分: 步骤1: 检查shard stores GET /_shard_stores?pretty ,得到分片损坏的明细,以便进行修复,得到如图: 步骤2: reroute index

    2024年01月22日
    浏览(23)
  • ElasticSearch 7.x现网运行问题汇集2

    现网indices有数据,如下,GET /_cat/indices得到的结果里,待查索引显示有数据472033条,但是Postman 发查询语句GET /_search match_all,查不出数据;GET /_count也是0。索引状态也是open,而不是close。 先看下索引情况,GET /demo-2014.02/_settings?pretty 注意到其中索引被标记为 \\\"frozen\\\":\\\"true\\\" ,在

    2024年01月22日
    浏览(23)
  • Elasticsearch入门 - Mac上Elasticsearch和Kibana的安装运行与简单使用

    Elasticsearch是一个基于Apache Lucene的搜索服务器,适用于所有类型的数据,包括文本、数字、地理空间、结构化和非结构化数据,是是ELK的一个组成部分(ELK代表的是:E就是ElasticSearch,L就是Logstach,K就是kibana)。 它提供了分布式可扩展的实时搜索和分析引擎,它以其简单的

    2024年01月25日
    浏览(30)
  • 【Elasticsearch】windows安装elasticsearch教程及遇到的坑

    一、安装参考 1、安装参考:ES的安装使用(windows版)  elasticsearch的下载地址:https://www.elastic.co/cn/downloads/elasticsearch  ik分词器的下载地址:https://github.com/medcl/elasticsearch-analysis-ik/releases  kibana可视化工具下载地址:https://www.elastic.co/cn/downloads/kibana  安装es之前确保系统已安装

    2024年04月17日
    浏览(32)
  • Windows安装ElasticSearch

    安装环境:java环境。新版本需要安装高版本的java,所有本次安装的为 7.x版本的ElasticSearch 。所以要java11 官网地址:(https://www.elastic.co/cn/) 安装包下载地址:https://www.elastic.co/cn/downloads/past-releases 选在要下载的软件及软件版本。我下载的为最新版本 Elasticsearch 7.10.2 进入Elastic

    2024年01月20日
    浏览(28)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包