ES啓動報錯:Exception in thread "main" 2019-04-28 03:53:04 main ERROR No log4j2 configuration file found

Exception in thread "main" 2019-04-28 03:53:04,339 main ERROR No log4j2 configuration file found.

SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: ParsingException[Failed to parse object: expecting token of type [START_OBJECT] but found [VALUE_STRING]];

Caused by: ParsingException[Failed to parse object: expecting token of type [START_OBJECT] but found [VALUE_STRING]]

解決辦法: ES的配置文件寫錯了,請儘量保持冒號前面沒空格,後面一個空格,不要用tab鍵。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章