设为首页 收藏本站
查看: 1778|回复: 0

[经验分享] 日志分析系统 --- AWStats

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-11-27 14:04:54 | 显示全部楼层 |阅读模式
  下载:

http://sourceforge.net/projects/awstats/
http://www.apachefriends.org/en/index.html
http://downloads.activestate.com/ActivePerl/releases/5.16.3.1603/ActivePerl-5.16.3.1603-MSWin32-x86-296746.msi

  测试环境
Microsoft Windows 7 Ultimate

  AWStats 安装和使用

1. 安装ActiveState --- Perl

2. 安装xampp

3. 安装AWStats

    3.1.将AWStats解压到文件夹D:\xampp\awstats\
    3.2. cd /d  D:\xampp\awstats\tools
    3.3  perl awstats_configure.pl
            ----- 按提示配置,配置完成后会在D:\xampp\awstats\wwwroot\cgi-bin下生成一个配置文件
    3.4  修改Apache的配置文件 httpd.conf,如下所示:  
  

  -----------------------------------------第一处------------------------------------------------

  <IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing &quot;/&quot; apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ &quot;D:/xampp/cgi-bin/&quot;
    Alias /awstatsclasses &quot;D:/xampp/awstats/wwwroot/classes/&quot;
    Alias /awstatscss &quot;D:/xampp/awstats/wwwroot/css/&quot;
    Alias /awstatsicons &quot;D:/xampp/awstats/wwwroot/icon/&quot;
    ScriptAlias /awstats/ &quot;D:/xampp/awstats/wwwroot/cgi-bin/&quot;


</IfModule>
  --------------------------------第二处------------------------------

  <Directory &quot;D:/xampp/awstats/wwwroot&quot;>
    AllowOverride All
    Options None
    Require all granted
</Directory>

  
4.使用AWStats
   访问localhost/awstats/awstats.pl?config=demo
   如果提示错误“couldn't create child process: 720002: awstats.pl”,
   请将D:/xampp/awstats/wwwroot/cgi-bin/awstats.pl的第一行改为perl的安装路径,例如:
   #!C:\Perl\bin\perl  如果对配置文件做了修改,使用下面命令更新配置:
  perl awstats.pl -config=awstats.demo.conf -update  # 更新配置 ---- [如何配置,请参考文件内的提示]

  

  成功后,如下图所示:

DSC0000.png

  

  

  推荐:
  http://www.ibm.com/developerworks/cn/linux/l-cn-awstats-nginx/

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-144158-1-1.html 上篇帖子: http日志分析工具awstat安装详解(续篇)--AWStats did not find any valid log lines that match yo 下篇帖子: AWStats安装与使用
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表