添加官方仓库

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/logstash-8.x.list

先安装openjdk-17-jdk

sudo apt install openjdk-17-jdk

安装logstash

sudo apt update && sudo apt install logstash

需要注意的是logstash不支持jdk8
https://www.elastic.co/cn/support/matrix#matrix_jvm

本文链接地址:https://const.net.cn/665.html

标签: none

添加新评论