報錯1:elasticsearch
[1]: max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]
解決:spa
sudo vi /etc/security/limits.conf 添加以下內容: * soft nofile 65536 #【修改該項便可】 * hard nofile 131072 * soft nproc 2048 * hard nproc 4096 須要系統重啓。
報錯2code
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解決:blog
sudo vi /etc/sysctl.conf 添加下面配置: vm.max_map_count=655360 【修該項便可】 並執行命令: sysctl -p