安装logstash ubuntu后/etc/init.d中缺少Logstash文件 [英] Logstash file is missing in /etc/init.d after installing logstash ubuntu
问题描述
我正在使用以下命令在Ubuntu中安装Logstash 6.3.0
I am installing logstash 6.3.0 in Ubuntu with the following commands
curl -L -O https://artifacts.elastic.co/downloads/logstash/logstash-6.3.0.deb 须藤dpkg -i logstash-6.3.0.deb
curl -L -O https://artifacts.elastic.co/downloads/logstash/logstash-6.3.0.deb sudo dpkg -i logstash-6.3.0.deb
尽管安装已完成,但仍不会在/etc/init.d目录中创建logstash文件,因此在启动logstash时会出现问题
Although the installation is completed, Still no logstash file will be created in /etc/init.d directory and therefore having issues in starting logstash
但是当我安装带有以下URL的较低版本并成功创建文件时 https://download.elastic.co/logstash/logstash/packages/debian/logstash_2.3.4-1_all.deb
But when I install a lower version with the following URL and it creates the file successfully https://download.elastic.co/logstash/logstash/packages/debian/logstash_2.3.4-1_all.deb
这样做的确切原因是什么,有什么地方可以得到6.3logstash的.deb文件?
What is the exact reason for that and are there any place to get an .deb file of 6.3 logstash ??
推荐答案
如果出于某种原因未创建Logstash 6.3的服务,则可以重新创建它.请尝试以下操作.
If the service for Logstash 6.3 wasn't created for some reason, you can recreate it. Try the following.
编辑文件/etc/logstash/startup.options
并放置 java
二进制文件和Java安装的位置,如下例所示.
Edit the file /etc/logstash/startup.options
and put the location of the java
binary and the java installation, like the example below.
JAVACMD=/opt/java/jdk1.8.0_161/bin/java
JAVA_HOME=/opt/java/jdk1.8.0_161
现在转到/user/share/logstash/bin
并运行 system-install
脚本.
sudo ./system-install
它应该给你消息:Successfully created system startup script for Logstash
这篇关于安装logstash ubuntu后/etc/init.d中缺少Logstash文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!