https://www.elastic.co/guide/en/elasticsearch/reference/7.10/deb.html#deb
使用apt安装
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
下面记录一下使用 apt 按照的过程
$ sudo apt-get update && sudo apt-get install elasticsearch
Get:1 https://artifacts.elastic.co/packages/7.x/apt stable InRelease [10.4 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages [53.6 kB]
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:5 https://download.docker.com/linux/ubuntu bionic InRelease
Get:6 https://artifacts.elastic.co/packages/7.x/apt stable/main i386 Packages [43.3 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 359 kB in 2s (1