# 内核设置 vm.swappiness=1 vm.max_map_count=262144 # 内存设置 export ES_HEAP_SIZE=8g # 配置文件 path.data: /home/stat/elasticsearch-6.1.1/data path.logs: /home/stat/elasticsearch-6.1.1/logs indices.fielddata.cache.size: 20% # 外部访问 network.host: 0.0.0.0 # [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536] # [2]: max number of threads [1024] for user [stat] is too low, increase to at least [4096] # [3]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk 修改 /etc/security/limits.conf * soft nofile 65536 * hard nofile 131072 * soft nproc 4096 * hard nproc 4096 修改 /etc/security/limits.d/90-nproc.conf * soft nproc 4096 要在Memory下面修改增加: bootstrap.memory_lock: false bootstrap.system_call_filter: false