|-转 Elasticsearch异常问题 discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
#
错误:文件权限不足 [1]: max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]#
再次启动,又出错了:
[ |
我们用的是新创建的用户,而不是root,所以文件权限不足。
首先用root用户登录。
然后修改配置文件:
vim /etc/security/limits.conf
添加下面的内容:
* soft nofile 65536 * hard nofile 131072 * soft nproc 4096 * hard nproc 4096
错误:线程数不够 [1]: max number of threads [1024] for user [leyou] is too low, increase to at least [4096]#
刚才报错中,还有一行:
[1]: max number of threads [1024] for user [leyou] is too low, increase to at least [4096]
这是线程数不够。
继续修改配置:
vim /etc/security/limits.d/20-nproc.conf
修改下面的内容:
* soft nproc |
改为:
* soft nproc 4096
错误:进程虚拟内存 [3]: max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]#
vm.max_map_count:限制一个进程可以拥有的VMA(虚拟内存区域)的数量,继续修改配置文件, : ...
浏览更多内容请先登录。
立即注册
更新于:2021-12-15 21:52:13
相关内容
Elasticsearch安装使用问题整理
Elasticsearch异常问题 discovery.seed_hosts, discovery.seed_providers,...
yum 安装elasticsearch
Elasticsearch在Windows环境下安装
推荐内容