欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Elastic Search

程序员文章站 2022-07-05 07:58:40
...

Elastic Search 安装问题

  1. max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]
vi /etc/security/limits.conf 

// 添加如下内容:
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
  1. max number of threads [1024] for user [lish] likely too low, increase to at least [2048]
vi /etc/security/limits.d/90-nproc.conf 

// 添加如下内容:
* soft nproc 2048
  1. max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
vi /etc/sysctl.conf 

// 添加下面配置:
vm.max_map_count=655360
并执行命令:
sysctl -p
  1. 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
vi ./config/elasticsearch.yml
// 放开注释
cluster.initial_master_nodes: ["node-1"]