统计nginx日志访问ip

cat merchant.jd.net_access.log | awk '{print $1}' | sort | uniq -c | sort -nr | less

统计结果:

4 10.12.173.187
1 10.12.203.86

猜你喜欢

转载自wanxiaotao12-126-com.iteye.com/blog/2046681