2017-04-12 90 views
-2

我运行ELK在码头工人容器在本地主机,我试图start filebeat(不通过搬运工容器),但我收到以下的误差。Filebeat命令没有发现

/etc/init.d/filebeat:找不到命令

有没有人有类似的问题,或任何想法如何解决这个问题?

此外,他们还提到:

如果您使用的init.d脚本在DEB或RPM开始Filebeat,你不能指定命令行标志(参见命令行选项)。要指定标志,请在前台启动Filebeat。

但不明白。我查了很多,但没有任何帮助。我在Ubuntu上运行这个16.10

+0

Ubuntu或者CentOS的?您的文章说,Ubuntu的,但下面的评论说的CentOS当然 –

回答

0

,有你尝试作为systemd服务启动filebeat?检查状态:

systemctl status -l filebeat 

如果返回有关服务的信息,然后filebeat设置是一个systemd服务,而不是产卵init.d中。使其具有与重启后仍然存在:

sudo systemctl enable filebeat 

并启动它:

sudo systemctl start filebeat