资讯

展开

Ddos防御笔记

作者:快盘下载 人气:

查看实时流量

sar -n DEV 1 10

动态查询主进程

top -d 1

递归查找某个目录的文件是否存在某个内容

grep -r -l ;think_page_trace;    // 是否存在 ‘think_page_trace’

检测是否受到Ddos攻击

netstat -ntu | awk ;{print $5}; | cut -d: -f1 | sort | uniq -c | sort -n

查看 某时间段的nginx日志统计

sed -n ;/21/Dec/2019:20/,/22/Dec/2019:23/p; access.log | goaccess -f access.log --log-format=%h %^ %^[%d:%t ;0000] %r; %s  %b %R; %u;; --date-format=%d/%b/%Y; --time-format=%H:%M:%S;  -d -a > test.html

加载全部内容

相关教程
猜你喜欢
用户评论
快盘暂不提供评论功能!