nginx 的access.log日志中统计访问量
统计pv
排除掉静态文件访问
grep "https://www.baidu.com/" access.log | grep -v ".css" | grep -v ".js" | grep -v "favicon.ico" | grep -v ".png" |grep -v "fonts" | awk '{print}' | sort -n | uniq | wc -l
统计uv
grep "https://www.baidu.com" access.log | grep -v ".css" | grep -v ".js" | grep -v "favicon.ico" | grep -v ".png" |grep -v "fonts" | awk '{print $1}' | sort -n | uniq | wc -l