设置awstats流量统计

2009-05-13 01:28:28来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


现在时间23点22分,刚才装了一个awstats的网络监控的一个东西,其实就是分析日志的一个小玩意儿挺好玩的,讲一下如何安装。
这东西挺好装的基本上不费什么时间,从awstats.sourceforge.net 找到了一个比较新的版本是6.5的首先解压,把awstats解到/usr/local/的下面,在tools里面有一个配置文件叫awstats_configure.pl执行它,根据它的提示你可以回答:
www# ./awstats_configure.pl
----- AWStats awstats_configure 1.0 (build 1.6) (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
-----> Check for web server install
Enter full config file path of your Web server.
Example: /etc/httpd/httpd.conf
Example: /usr/local/apache2/conf/httpd.conf
Example: c:Program filesapache groupapacheconfhttpd.conf
Config file path ('none' to skip web server setup):
> /usr/local/etc/apache21/Includes/ykvod.2288.conf
-----> Check and complete web server config file '/usr/local/etc/apache21/Includes/ykvod.2288.conf'
  AWStats directives already present.
-----> Update model config file '/usr/local/awstats/wwwroot/cgi-bin/awstats.model.conf'
  File awstats.model.conf updated.
-----> Need to create a new config file ?
Do you want me to build a new AWStats config/profile
file (required if first install) [y/N] ? y
-----> Define config file name to create
What is the name of your web site or profile analysis ?
Example: www.mysite.com
Example: demo
Your web site, virtual server or profile name:
> ykvod.2288.org
-----> Define config file path
In which directory do you plan to store your config file(s) ?
Default: /etc/awstats
Directory path to store config file(s) (Enter for default):
> /usr/local/etc/awstats
-----> Create config file '/usr/local/etc/awstats/awstats.ykvod.2288.org.conf'
Config file /usr/local/etc/awstats/awstats.ykvod.2288.org.conf created.
-----> Add update process inside a scheduler
Sorry, configure.pl does not support automatic add to cron yet.
You can do it manually by adding the following command to your cron:
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=ykvod.2288.org
Or if you have several config files and prefer having only one command:

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:FreeBSD 5.3/5.4下中文显示

下一篇:一个大学教授让人发冷汗的讲演(绝对精采)