ElasticSearch启动报错 ERROR

ElasticSearch启动报错如下:
ERROR: [4] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
[2]: max number of threads [3870] for user [elk] 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]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured

第[1]-[2]项问题解决:
使用root用户,编辑文件/etc/security/limits.conf,在文件的末尾处,增加手游参数
elk hard nofile 65536? ? ?#elk 为运行ElasticSearch程序的用户
elk soft nofile 65536? ? ??#elk 为运行ElasticSearch程序的用户
elk hard nproc 4096? ? ??#elk 为运行ElasticSearch程序的用户
elk soft nproc 4096? ? ? ?#elk 为运行ElasticSearch程序的用户

保存并退出编辑

第[3]项问题解决:
使用root用户,编辑文件/etc/sysctl.conf,在文件的末尾处,增加如下参数
vm.max_map_count = 655360
保存并退出编辑
sysctl -p? ? //使配置生效

第[4]项问题解决:
编辑elasticsearch目录下,config/elasticsearch.ymlwww.diuxie.com文件,修改如下的参数下如:
#cluster.initial_master_nodes: ["node-1", "node-2"]
cluster.initial_master_nodes: ["node-1"]
保存并退出编辑

然后使用elk用户重新启动ElasticSearch ? ? ? ?

ElasticSearch启动报错 ERROR

上一篇:关于oracle pfile和spfile文件说明


下一篇:React-Antd4的Form表单校验