logstash 5.0.0.1 RHEL6无法启动

时间:2016-11-25 18:10:40

标签: elasticsearch logstash kibana

一个干净的RHEL 6.0,你能告诉我我错过了什么。 我做了以下但似乎是一些我错误的猫开始logstash由于某种原因。

我不是linux的新手。我试着去学习。

已完成以下操作以使安装正常运行。

Elasticsearch和Kibana启动的问题在于Logstash。

希望有人可以帮助我。真的很难让这个工作。

#Install Java
    sudo su -c "yum install java-1.8.0-openjdk"

*Installed:
  java-1.8.0-openjdk.x86_64 1:1.8.0.45-28.b13.el6_6
**Complete**!*

    java -version


*openjdk version "1.8.0_45"*


#Install elasticsearch
sudo su -c "yum localinstall elasticsearch-5.0.1.rpm "


*Running Transaction
  Installing : elasticsearch-5.0.1-1.noarch                                                                                                                                                                1/1
Creating elasticsearch group... OK
Creating elasticsearch user... OK
NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using chkconfig
sudo chkconfig --add elasticsearch
 You can start elasticsearch service by executing
sudo service elasticsearch start
  Verifying  : elasticsearch-5.0.1-1.noarch                                                                                                                                                                1/1
Installed:
  elasticsearch.noarch 0:5.0.1-1*

**Complete**!

    sudo chkconfig --add elasticsearch
    sudo service elasticsearch start

* elasticsearch Started*

#Install kibana

    sudo su -c "yum localinstall kibana-5.0.1-x86_64.rpm"

*Downloading Packages:
Installed:
  kibana.x86_64 0:5.0.1-1*

**Complete**!


#Install logstash
sudo su -c "yum localinstall logstash-5.0.1.rpm"


*Total size: 189 M
  Installing : 1:logstash-5.0.1-1.noarch                                                                                                                                                                   1/1
Using provided startup.options file: /etc/logstash/startup.options
Successfully created system startup script for Logstash
  Verifying  : 1:logstash-5.0.1-1.noarch                                                                                                                                                                   1/1
Installed:
  logstash.noarch 1:5.0.1-1*

**Complete!**



#Query config values

    rpm -qc elasticsearch


*/etc/elasticsearch/elasticsearch.yml
/etc/elasticsearch/jvm.options
/etc/elasticsearch/log4j2.properties
/etc/elasticsearch/scripts
/etc/init.d/elasticsearch
/etc/sysconfig/elasticsearch
/usr/lib/sysctl.d/elasticsearch.conf
/usr/lib/systemd/system/elasticsearch.service*



#Query config values

    rpm -qc logstash

*/etc/logstash/jvm.options
/etc/logstash/logstash.yml
/etc/logstash/startup.options*


#Query config values
    rpm -qc kibana
*/etc/kibana/kibana.yml*

#Permissions

    sudo su -c "chmod -R 777 /etc/kibana/"
    sudo su -c "chmod -R 777 /etc/logstash/"
    sudo su -c "chmod -R 777 /etc/elasticsearch/"

    sudo service kibana start

*-- output kibana started*

Grrr..... This does not stat

sudo chkconfig --add logstash
    sudo service logstash start
> try this ->

    sudo su -c "/usr/share/logstash/bin/system-install"


* Sending all logs to /tmp/tmp.ZNfIKnQxFh Successfully created system
startup script for Logstash*

0 个答案:

没有答案