1. 论坛系统升级为Xenforo,欢迎大家测试!
    Dismiss Notice

写一句脚本,分析apache的access.log,得出访问量最高文件前5名

Discussion in '主机讨论' started by notnull, Nov 6, 2006.

  1. notnull

    notnull New Member

    Joined:
    Sep 27, 2005
    Messages:
    11,720
    Likes Received:
    37
    :mummy:

    谁写来看看
     
  2. ym0723

    ym0723 New Member

    Joined:
    May 5, 2008
    Messages:
    1
    Likes Received:
    0
    cat access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -5
     
  3. wzs521

    wzs521 New Member

    Joined:
    May 23, 2008
    Messages:
    14
    Likes Received:
    0
    不会写,但顶
     
  4. webren

    webren New Member

    Joined:
    Sep 6, 2008
    Messages:
    2,934
    Likes Received:
    0
    我来也.
     
  5. wwwewidccn

    wwwewidccn New Member

    Joined:
    Oct 2, 2008
    Messages:
    43
    Likes Received:
    0
    :lol:不会 支持下