安装AWStats 来分析web日志

AWStats日志分析工具安装与配置指南
本文档详细介绍了如何在Linux系统中安装和配置AWStats日志分析工具,包括下载、初始化设置、编辑配置文件、生成分析日志、通过浏览器访问以及设置安全登录。此外,还解决了可能出现的TooManyOpenFiles问题,提供了调整系统限制的解决方案。

目录

1、下载

2、初始化设置

3、编辑配置文件

4、生成分析日志

5、浏览器打开

6、设置安全登录

 设置用户、密码

 设置权限

 修改站点配置

apache

 nginx

7、Too Many Open Files问题


1、下载

 官网:AWStats - Open Source Log File Analyzer for advanced statistics (GNU GPL)

wget https://prdownloads.sourceforge.net/awstats/awstats-7.8.tar.gz --no-check-certificate
tar -xzvf awstats-7.8.tar.gz
mv  awstats-7.8 /usr/local/
ln -s /usr/local/awstats-7.8/ /usr/local/awstats
chown -R www.www /usr/local/awstats/

2、初始化设置

cd /usr/local/awstats/tools
./awstats_configure.pl

 配置参考:

----- AWStats awstats_configure 1.0 (build 20140126) (c) Laurent Destailleur -----
This tool will help you to configure AWStats to analyze statistics for
one web server. You can try to use it to let it do all that is possible
in AWStats setup, however following the step by step manual setup
documentation (docs/index.html) is often a better idea. Above all if:
- You are not an administrator user,
- You want to analyze downloaded log files without web server,
- You want to analyze mail or ftp log files instead of web log files,
- You need to analyze load balanced servers log files,
- You want to 'understand' all possible ways to use AWStats...
Read the AWStats documentation (docs/index.html).

-----> Running OS detected: Linux, BSD or Unix
Warning: AWStats standard directory on Linux OS is '/usr/local/awstats'.
If you want to use standard directory, you should first move all content
of AWStats distribution from current directory:
/usr/local/awstats-7.8
to standard directory:
/usr/local/awstats
And then, run configure.pl from this location.
Do you want to continue setup from this NON standard directory [yN] ? y

-----> Check for web server install

Enter full config file path of your Web server.
Example: /etc/httpd/httpd.conf
Ex
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值