linux 安装 elasticsearch(超简单)
一、Ubuntu 安装
1)root用户安装
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add - apt-get install apt-transport-https echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | tee /etc/apt/sources.list.d/elastic-7.x.list apt-get update && apt-get install elasticsearch
2)非root用户安装
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - sudo apt-get install apt-transport-https echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list sudo apt-get update && sudo apt-get install elasticsearch
参考链接:https://www.elastic.co/guide/en/elasticsearch/reference/7.10/deb.html#deb-key
二、CentOs 安装
参考链接:https://www.elastic.co/guide/en/elasticsearch/reference/7.10/rpm.html#rpm-key
三、Docker 安装
docker pull elasticsearch:7.9.3
参考链接:https://hub.docker.com/_/elasticsearch?tab=tags&page=1&ordering=last_updated
四、其他方式安装
https://www.elastic.co/cn/downloads/elasticsearch