nginx IP访问次数统计

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

 

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

posted @ 2020-06-23 12:11  随便写写-运维  阅读(1086)  评论(0)    收藏  举报