
想记录某些关键端口的历史占用情况,但是 linux 系统日志好像没有。 有什么工具能满足需求推荐下。
1 d0m2o08 2018-07-24 16:00:39 +08:00 自己造一个扔到 corn 里 |
3 biaoliruyi OP @d0m2o08 shell 不是强项(运维人跑了开发顶上) 看了下 cron 最小精度是分钟不太能满足我的需求 |
4 reus 2018-07-24 16:09:33 +08:00 iptables -I INPUT -p tcp --dport some_port -j LOG |
5 reus 2018-07-24 16:10:35 +08:00 google "linux log port state" |
6 BOYPT 2018-07-24 16:12:04 +08:00 写个 while true 的脚本,把 ss 的输出 dump 到文件 |