Nginx

Nginx UV 独立ip访问计数统计 - (counter ips visit)

在编译期间被创建并确定值,运行期不能改变值

Stan xx

4 minute read

统计独立ip数 Recently, many referer spam hit on my server, below is the command I used to find and count the IP Address from a Nginx access log file. $ sudo awk ‘{print $1}’ /var/log/nginx/goexample.log | sort | uniq -c | sort -nr A example [root@iZj6cbv0sbzom9p7hjovcuZ nginx]# sudo awk ‘{print $1}’ /var/log/nginx/goexample.log | sort | uniq -c | sort -nr 25 103.206.191.165 4 67.183.125.48 3 123.59.146.153 3 120.132.3.151 2 111.