1、下载elasticsearch6.2.1
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.1.tar.gz
2、解压安装
3、启动
因为es为防止远程执行一些脚本,所以启动需要建立一个新的grouop 和user
直接进入bin目录启动
可能出现的问题,
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
vim /etc/security/limits.conf,在文件最后加上
* soft nproc 6000 * hard nproc 6000 * soft nofile 65536 * hard nofile 65536
[2]: max number of threads [1024] for user [es] is too low, increase to at least [4096]
vim /etc/security/limits.d/90-nproc.conf
* soft nproc 6000
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
vim /etc/sysctl.conf ,在文件最后面加上
vm.max_map_count=655360
【ELK】之Centos6.9_x64安装elasticsearch6.2.1
原文:https://www.cnblogs.com/gyjx2016/p/9130195.html