【发布时间】:2017-07-05 09:58:51
【问题描述】:
我已经设置了一个 rsyslog-server 并想对其进行测试。我正在关注链接how-to-use-tcpflood。
此链接显示“此工具包含在‘tests’的本地 rsyslog 文件夹中”。本地 rsyslog 文件夹是什么意思?我在 ubuntu 机器上安装了 rsyslog (v 8.24.0-0adiscon2xenial1);但它没有任何名为“tests”的文件夹。
假设它可能是来自 github 的 rsyslog 源代码,我克隆了 https://github.com/rsyslog/rsyslog.git。该项目确实包含文件夹“测试”。我按照指示运行“make tcpflood”。但它失败了。
~/rsyslog/tests$ make tcpflood
cc tcpflood.c -o tcpflood
tcpflood.c:86:20: fatal error: config.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'tcpflood' failed
make: *** [tcpflood] Error 1
我错过了什么?如何让 tcpflood 运行?
【问题讨论】:
-
我也在找同样的答案,你能解决这个问题吗?
-
我没有使用 tcpflood。相反,我使用了记录器。参考man7.org/linux/man-pages/man1/logger.1.html。