nginx IP访问次数统计

cat access.log |awk '{print $1}' |sort |uniq -c |sort -nk1 -r

sort -n 以数值排序;uniq -c 去重+统计次数

猜你喜欢

转载自www.cnblogs.com/cntzyw/p/13181426.html