报错

can not run elasticsearch as root

groupadd genghua
useradd genghua -g genghua -p genghua
chown -R genghua:genghua elasticsearch-7.0.1
su genghua

报错

max number of threads [3894] for user [genghua] is too low, increase to at least [4096]

vim /etc/security/limits.conf

增加配置

*               soft    nproc           4096
*               hard    nproc           4096

Elasticsearch7 安装报错

报错

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

vi /etc/sysctl.conf

Elasticsearch7 安装报错

报错

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
单机版本需要设置:

vim /usr/local/elasticsearch-7.0.1/config/elasticsearch.yml

cluster.initial_master_nodes: [“node-1”]

相关文章:

  • 2021-09-21
  • 2022-12-23
  • 2021-11-18
  • 2021-09-20
  • 2021-06-17
  • 2021-08-22
  • 2021-04-17
  • 2021-12-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-13
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2021-07-15
相关资源
相似解决方案