1.创建用户
groupadd elasticsearch && useradd -g elasticsearch elasticsearch
passwd elasticsearch
2.下载elasticsearch包并解压
3.修改配置
vi /etc/security/limits.conf
- soft nofile 65536
- hard nofile 65536
- soft memlock unlimited
- hard memlock unlimited
reboot
vi /etc/sysctl.conf
vm.max_map_count=655350
vm.swappiness=0
sysctl -p
ps:解决max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
4.进入bin目录
./elasticsearch -d
技术分享离不开您的支持,您的支持是我源源不断的动力。