如何制作rsyslog tcpflood?

问题描述 投票:0回答:1

我已经设置了一个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。该项目确实包含文件夹“tests”。我按照指示运行“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运行?

testing rsyslog
1个回答
0
投票

Tcpflood是一个测试工具,在OP怀疑的包中不存在。因此,需要从源代码构建。这里描述:http://www.rsyslog.com/doc/master/installation/install_from_source.html

完成初始步骤后,您可以构建tcpflood工具。显然,为此创建一个包可能是有意义的......

© www.soinside.com 2019 - 2024. All rights reserved.