标签:use 下载 limited log last bootstrap follow 服务器搭建 3.2
1:下载和解压:can not run elasticsearch as root:
不能使用root用户进行操作,需要创建一个用户,并把原来的目录的拥有者更改为该用户
adduser myuser
passwd myuser
chown -R myuser /mypath
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
修改/etc/security/limits.conf
添加:elastic hard nofile 65536
max file size [67107840] for user [elastic] is too low, increase to [unlimited]
修改/etc/security/limits.conf
elastic soft fsize unlimited
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解决:sysctl -w vm.max_map_count=262144
5:运行:
bin/elasticsearch
后台运行:bin/elasticsearch -d -p pidFile
会生成一个pidFile文件,记录pid
随系统启动:
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service
标签:use 下载 limited log last bootstrap follow 服务器搭建 3.2
原文地址:https://blog.51cto.com/13860853/2362613