1. 下载安装包
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.0-linux-x86_64.tar.gz
2. 配置elasticsearch.yml
cd /opt/elasticsearch/elasticsearch-7.9.0/conf
vim elasticsearch.yml
3. 添加用户
adduser es
chown -R es:es /opt/elasticsearch
4. 启动
su es
cd /opt/elasticsearch/elasticsearch-7.9.0/bin
./elasticsearch -d
5. 验证
curl 127.0.0.1:9200