写一个脚本进行nginx日志统计,得到访问次数最多的前10个ip

awk ‘{print $1}’ /usr/local/nginx/logs/localhost.access.log |
sort | uniq -c | sort -nr -k1 | head -n 10

posted @ 2020-07-21 22:25  轩辕吊雷  阅读(1293)  评论(0编辑  收藏  举报