您的当前位置:首页正文

Elasticsearch安装过程出现的问题

2024-11-24 来源:个人技术集锦

1.java.nio.file.AccessDeniedException: /home/leyou/elasticsearch/config/jvm.options 文件权限不足要切换到root用户下赋予权限。

chown -R leyou:leyou /home/leyou/elasticsearch/

2.max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]

 vim /etc/security/limits.conf

在系统limits.conf的最后面加上就好

 * soft nofile 65536
 * hard nofile 65536
 * soft nproc 4096
 * hard nproc 4096

3.max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

提高系统的最大内存需要的配置

vim /etc/sysctl.conf
vm.max_map_count=262144

最后对配置文件进行刷新:

sysctl -p

启动成功!

 

显示全文