1下载安装
不细说了,官方链接
安装好后启动报错
这是因为不能以root账户启动es,需要新建账户.
执行命令
adduser [用户名]
passwd [密码]
通过root授权: chown [用户名] [es目录] -R
切换到添加的用户 su [用户名]
启动es
再次报错
这是因为linux版本过低造成的,不影响使用.
然而启动依然失败,仔细看了一下错误信息,
ERROR: [4] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max number of threads [1024] for user [yyy] is too low, increase to at least [2048]
[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 system call filters at your own risk
这个意思是Linux默认配置的参数过小,需要自己设置.,
解决方案
配置完成后还有错误
system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
需要在elasticsearch.yml配置文件中 添加
bootstrap.system_call_filter: false
在这个地方
注意:前边必须空两格,这是yml文件的格式要求,否则会报错
启动成功!