获得访问前10位的IP地址:
[[email protected]:~]# cat /var/log/nginx/access.log | awk ‘{print $1}‘|sort|uniq -c | sort -nr | head -10 10299 10.46.170.7 4 218.202.70.147 1 77.72.83.87 1 5.39.217.107 1 185.197.74.234 1 185.197.74.231
原文地址:https://www.cnblogs.com/FengGeBlog/p/10289239.html
时间: 2024-11-13 08:18:04