1.安装
JDK需要1.8
下载:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.0-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.0-linux-x86_64.tar.gz.sha512
# vim /etc/security/limits.conf
elasticsearch soft memlock unlimited
elasticsearch hard memlock unlimited
elasticsearch soft nofile 65536
elasticsearch hard nofile 131072
mv elasticsearch-2.4.0 /usr/local/elasticsearch
cd /usr/local/elasticsearch/config/
cp elasticsearch.yml elasticsearch.yml.old
mkdir {data,log}
cat elasticsearch.yml|grep -v "^$"|grep -v "^#"
useradd elasticsearch
chown -R elasticsearch:elasticsearch /usr/local/elasticsearch
cd /usr/local/elasticsearch/bin/
原文:https://www.cnblogs.com/youzirourou/p/14033702.html