centos 安装logstash 5.0

来源:互联网 发布:软件平台下载 编辑:程序博客网 时间:2024/06/12 00:24

Logstash requires Java 8. Java 9 is not supported. Use the official Oracle distributionor an open-source  distribution such as OpenJDK.

To check your Java version, run the following command:

java -version

On systems with Java installed, this command produces output similar to the following:

java version "1.8.0_65"Java(TM) SE Runtime Environment (build 1.8.0_65-b17)

Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

安装jdk: yum  install java-1.8.0*

通过yum来安装 logstash

Download and install the public signing key:

rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

Add the following in your /etc/yum.repos.d/ directory in a file with a .repo suffix, for example logstash.repo

[logstash-5.x]name=Elastic repository for 5.x packagesbaseurl=https://artifacts.elastic.co/packages/5.x/yumgpgcheck=1gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearchenabled=1autorefresh=1type=rpm-md

And your repository is ready for use. You can install it with:

sudo yum install logstash

原创粉丝点击