使用背景浅浅介绍:nojdk版的es 7.4.2
首先在刚刚修改完配置文件后,切换到es用户后第一次启动(es不让root用户启动)
出现第一个问题:
这里可以看出是配置文件哪里出了问题
Exception in thread “main” SettingsException[Failed to load settings
from [elasticsearch.yml]]; nested:
ElasticsearchParseException[malformed, expected settings to start with
‘object’, instead was [VALUE_STRING]];
其实是格式出现问题
解决方法:在每个没有被注释掉的配置行的头需要一个空格,冒号后需要一个空格。
第二次启动
再次出现问题
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max number of threads [3818] for user [es] is too low, increase to at least [4096]
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[4]: system call filters failed to install; check the logs and fix your configuration or disable sys