gpt4 book ai didi

elasticsearch - 在 Windows 中运行 Filebeat

转载 作者:行者123 更新时间:2023-11-29 02:48:50 31 4
gpt4 key购买 nike

我最近使用这些说明在 Windows 上设置了 filebeat

https://www.elastic.co/downloads/beats/filebeat

但它迫使我在运行命令时保持 cmd 提示符打开

filebeat.exe -c filebeat.yml

我想知道是否有办法将其作为后台进程运行?

谢谢。

最佳答案

尝试浏览完整的 Getting Started guide for Filebeat .有适用于 Windows 的说明。基本上说明是:

  1. 将下载文件解压到任何地方。

  2. 将提取的目录移动到 Program Files。

    PS > mv filebeat-5.1.2-windows-x86_64 "C:\Program Files\Filebeat"
  3. 安装 filebeat 服务。

    PS > cd "C:\Program Files\Filebeat"
    PS C:\Program Files\Filebeat> powershell.exe -ExecutionPolicy UnRestricted -File .\install-service-filebeat.ps1
  4. 编辑 filebeat.yml 配置文件并测试您的配置。

    PS C:\Program Files\Filebeat> .\filebeat.exe -e test config
  5. (可选)在前台运行 Filebeat 以确保一切正常。 Ctrl+C 退出。

    PS C:\Program Files\Filebeat> .\filebeat.exe -c filebeat.yml -e -d "*"
  6. 启动服务。

    PS > Start-Service filebeat

如果您需要停止它,请使用Stop-Service filebeat。如果您想更改配置,您可能需要停止并启动它。

关于elasticsearch - 在 Windows 中运行 Filebeat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41751605/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com