Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以使用什么命令来分析 Apache 的日志文件,它告诉我在 x 天的上午 11 点到 x 天的下午 13 点之间,每秒的平均请求数是……?操作系统是linux(红帽)
谢谢
第 x 天上午 11 点至下午 13 点之间
我的时钟不会一直到下午 13 点。简易机场 1 的情况如何?
假设你的意思是下午 1 点......
就像是...
awk 'BEGIN {started=0} /\[29\/Oct\/2010:11/ { started=1} /\[29\/Oct\/2010:1[3-9]/ { print count/(2*60*60); exit; } // { if (started) count++; }' <access_log