摘要:
1.选出对应时间的日志 sed -ne '/15\/Dec\/2020:09:00:04 +0800/,/15\/Dec\/2020:10:38:54 +0800/p' access.log |grep -v 'HEAD / HTTP/1.1' > /tmp/all-ip.txt 2.统计独立访问i 阅读全文
摘要:
1.Nginx 作为服务器时,获取客户端真实 IP 使用 http_realip_module,默认安装的 Nginx 是没有安装这个模块的,需要重新编译 Nginx 增加 --with-http_realip_module。 wget http://nginx.org/download/nginx 阅读全文