摘要:
查看了连接数和当前的连接数netstat -ant | grep $ip:80 | wc -l netstat -ant | grep $ip:80 | grep EST | wc -l 查看IP访问次数netstat -nat|grep ":80"|awk '{print $5}' |awk -F: '{print $1}' | sort| uniq -c|sort -nLinux命令:netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'wa 阅读全文
摘要:
1.安裝ab命令sudo apt-get install apache2-utils2.ab命令参数说明Usage: ab [options] [http[s]://]hostname[:port]/pathOptions are://总的请求数 -n requests Number of requests to perform宅 //一次同时并发的请求数 总的请求数(n)=次数*一次并发数(c) -c concurrency Number of multiple requests to make-t timelimit Seconds to max. wait for responses-b 阅读全文