【问题标题】:syslog-ng 2.09 threaded() syntaxsyslog-ng 2.09 线程()语法
【发布时间】:2017-04-26 18:41:18
【问题描述】:

Sles 11 SP 4 syslog-ng-2.0.9-27.34.39.2 - thread() 甚至可以在这个版本上工作吗?

我正在尝试启用多线程,但在将 threaded() 添加到选项 {} 节时遇到了语法错误。第 16 行是 threaded() .. 我尝试了一些东西,但没有任何效果.有什么建议会有所帮助吗?谢谢你~肖恩

=========== syslog-ng.conf ===================

options {
        create_dirs(yes);
        keep_hostname(yes);
        log_fetch_limit(100);
        flush_lines(100);
        use_dns(no);
        threaded(yes);
};

============== 错误============== 解析 main 时出错,语法错误,意外的 LL_IDENTIFIER,在 /opt/syslog-ng/etc/syslog-ng.conf 第 16 行第 2 列中需要 '}':

    threaded();
    ^^^^^^^^

【问题讨论】:

    标签: multithreading syslog-ng sles


    【解决方案1】:

    您的 syslog-ng 版本太旧,多线程是在 3.3 版左右引入的。您可以在list of newer packages at the syslog-ng website 上找到how to install recent syslog-ng version on SLES 和详细说明。

    问候, 罗伯特

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-02-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多