"bash."
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
```
Passaggio 2:aggiungi il repository Elasticsearch
"bash."
sudo apt install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
```
Passaggio 3:installa Elasticsearch
"bash."
sudo apt update &&sudo apt install elasticsearch
```
Passaggio 4:attiva Elasticsearch
"bash."
sudo systemctl daemon-reload
sudo systemctl abilita elasticsearch.service
```
Passaggio 5:avvia Elasticsearch
"bash."
sudo systemctl avvia elasticsearch.service
```
Passaggio 6:verifica l'installazione di Elasticsearch
"bash."
curl -X OTTIENI http://localhost:9200
```
Dovresti ricevere una risposta come questa:
```
{
"nome":"Ricercaelastica",
"nome_cluster":"elasticsearch_ubuntu",
"cluster_uuid":"sN-jN-75SbWj1fI_rZc81g",
"versione" :{
"numero" :"8.2.4",
"build_flavor":"predefinito",
"build_type":"docker",
"build_hash":"3f4c3a9c5f5c1f4c4b3c4a9a4f400f45aecb0b3e",
"build_date":"2021-06-29T09:02:10.123125Z",
"build_snapshot":falso,
"lucene_version":"8.10.1",
"minimum_wire_compatibility_version":"7.12.0",
"minimum_index_compatibility_version":"6.0.0-beta1"
},
"slogan":"Lo sai, per la ricerca"
}
```
sistemi © www.354353.com