官网安装说明地址:https://www.elastic.co/guide/en/elasticsearch/reference/7.13/rpm.html
第一步:下载rpm包 安装rpm包
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.13.2-x86_64.rpm
sudo rpm --install elasticsearch-7.13.2-x86_64.rpm
![](https://img2020.cnblogs.com/blog/918218/202106/918218-20210624093120214-411171869.png)
第二步:根据上面安装输出信息提示,安装系统服务
### NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using systemd sudo systemctl daemon-reload sudo systemctl enable elasticsearch.service ### You can start elasticsearch service by executing sudo systemctl start elasticsearch.service