安装最新版Elasticsearch报错

 

1 问题:ERROR: bootstrap checks failed

max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]

max number of threads [1024] for user [lishang] likely too low, increase to at least [2048]

vi /etc/security/limits.conf

* soft nofile 65536

* hard nofile 131072

* soft nproc 2048

* hard nproc 4096

vi /etc/sysctl.conf

vm.max_map_count=655360

保存后执行:

sysctl -p

2 报错  the default discovery settings are unsuitable for production use

单机启动 设置单机master修改 elasticsearch.yml

cluster.initial_master_nodes: ["node-1"] 

3.开通外网

修改elasticsearch.yml

network.host: 0.0.0.0

 

posted @ 2019-06-18 21:40  梦醒心晴  Views(1408)  Comments(0Edit  收藏  举报