ElasticSearch7.2 (Linux Centos single node) installation and start solving error

1, download the official ElasticSearch7.2

      Open officer ⽹ link https://www.elastic.co/guide/en/elastic-stack/7.2/index.html

      Select the version you want to download

      After the download is complete, unzip the path they want to put down

2, JDK configuration environment. . . Omission

      Note: elasticsearch to jdk version is very strict, I use jdk11 correspond ES7.2

3, modify the configuration file: /opt/es/elasticsearch-7.2.0/config/elasticsearch.yml   

network.host: 192.168.164.26
http.port: 9200

4, start

     Entered into | /opt/es/elasticsearch-7.2.0/bin/, the start command: ./ elasticsearch

     Or the daemon mode can be used sh elasticsearch.sh -d -p pid 

 


Start Problem:

 

ERROR: [5] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: memory locking requested for elasticsearch process but memory is not locked
[3]: max number of threads [1024] for user [wangxiang] is too low, increase to at least [4096]
[4]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[5]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

1. Modify vi /etc/security/limits.conf file, increase the allocation

*               soft    nofile          65536
*               hard    nofile          65536

2. Switch to the root user, edit vi /etc/security/limits.conf configuration file, add the following: 

* soft memlock unlimited 
* hard memlock unlimited 

     Note: Linux * on behalf of all user names

3. The maximum number of threads is too low. Modify the configuration file vi /etc/security/limits.d/90-nproc.conf

*               soft    nproc           4096
*               hard    nproc           4096

4. Modify /etc/sysctl.conf file, increase the allocation

vm.max_map_count=262144
或者
vm.max_map_count=655360

    Run sysctl -p take effect

5. Add items arranged in elasticsearch.yml

bootstrap.memory_lock: false
bootstrap.system_call_filter: false

6, the modified configuration item elasticsearch.yml

node.name: node-1
cluster.initial_master_nodes: ["node-1"]

After saving the restart visit

Published 91 original articles · won praise 3 · Views 5265

Guess you like

Origin blog.csdn.net/qq_22049773/article/details/102891816