学习在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