Elasticsearch - установка на Debian 10

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск

Elasticsearch - установка на Debian 10

Elasticsearch написан на Java - поэтому сперва нужно установить Java на Debian 10:

# apt install default-jdk
# java -version
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Debian-3deb10u1)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Debian-3deb10u1, mixed mode, sharing)


# wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
# sh -c 'echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" > /etc/apt/sources.list.d/elastic-7.x.list'
# apt update
# apt install elasticsearch
# systemctl enable elasticsearch.service --now


# curl -X GET "localhost:9200"


Основной лог elasticsearch:

# tail -f /var/log/elasticsearch/elasticsearch.log