Logstash file is missing in /etc/init.d after installing logstash ubuntu

南楼画角 提交于 2021-01-29 05:41:35

问题


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 sudo dpkg -i logstash-6.3.0.deb

Although the installation is completed, Still no logstash file will be created in /etc/init.d directory and therefore having issues in starting logstash

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

What is the exact reason for that and are there any place to get an .deb file of 6.3 logstash ??


回答1:


If the service for Logstash 6.3 wasn't created for some reason, you can recreate it. Try the following.

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

Now go to /user/share/logstash/bin and run the system-install script.

sudo ./system-install

It should give you the message: Successfully created system startup script for Logstash



来源:https://stackoverflow.com/questions/55612113/logstash-file-is-missing-in-etc-init-d-after-installing-logstash-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!