【elasticsearch】windows server 2008R2启动elasticsearch.bat出现黑窗闪退

在Windows Server 2008R2上安装Elasticsearch 2.4.4后,遇到通过IP地址无法访问且启动脚本elasticsearch.bat运行时黑窗闪退的问题。日志显示配置文件elasticsearch.yml解析错误,具体为在第17行和21行附近存在块映射错误。要解决这个问题,需要检查并修正配置文件中的yaml格式错误。
摘要由CSDN通过智能技术生成

学习在windows server 2008R2安装elasticsearch2.4.4,安装参考文档

https://www.cnblogs.com/cxxjohnson/p/9083941.html

安装完成之后,发现只能用localhost或者127.0.0.1后加9200端口号访问,不能以IP地址访问,于是修改配置文件,重启结果发现,启动elasticsearch.bat出现黑窗闪退。

所以在cmd窗口下启动,报错日志如下:

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>cd D:\elasticsearch-2.4.4\bin

C:\Users\Administrator>d:

D:\elasticsearch-2.4.4\bin>elasticsearch.bat
Exception in thread "main" SettingsException[Failed to load settings from [elast
icsearch.yml]]; nested: MarkedYAMLException[while parsing a block mapping
 in 'reader', line 17, column 3:
      cluster.name: myescluster
      ^
expected <block end>, but found BlockMappingStart
 in 'reader', line 21, column 4:
       node.master: false
       ^

 at [Source: # ======================== Elasticsearch Configuration ============
=============
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
#       Before you set out to tweak and tune the configuration, make sure you
#       understand what are you trying to accomplish and the consequences.
#
# The primar

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值