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 ? ? ? ?
相关文章
- 01-21Python3 pip命令报错:Fatal error in launcher: Unable to create process using '"'
- 01-21docker端口映射启动报错Error response from daemon: driver failed programming external connectivity on endpoint jms_guacamole
- 01-21kvm安装报错“ERROR Host does not support domain type kvm for virtualization type 'hvm' arch
- 01-21laravel migrate时报错:Syntax error or access violation: 1071 Specified key was too long; max key length
- 01-21RabbitMQ 安装及启动报错 Error description: noproc 解决办法
- 01-21启动项目报错Error: listen EADDRINUSE
- 01-21ride.py 启动报错
- 01-21win10x64启动vs2010报错:未能加载C:\Windows\Microsoft.NET\Framework\v2.0.50727\microsoft.vsa.tlb
- 01-21提交代码报错 error: failed to push some refs to
- 01-21安装docker-ce报错——Error: Package:docker-ce-rootless-extras-20.10.3-3.el7.x86_64 (docker-ce-stable