b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

awstats安装_为何使用awstats_awstats功能(2)

电脑杂谈  发布时间:2016-12-12 20:03:10  来源:网络整理

-----> Check and complete web server config file '/usr/local/apache-2.2.6/conf/httpd.conf'

Warning: You Apache config file contains directives to write 'common' log files

This means that some features can't work (os, browsers and keywords detection).

Do you want me to setup Apache to write 'combined' log files [y/N] ?y

此处为检测到apache配置文件中定制日志格式(CustomLog)为common格式,建议更改为combined格式,输入 y 接受建议。

-----> 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

此处是询问你是否要建立一个新的AWStats配置文件,如果是第一次安装,则输入 y ,以建立一个新的配置文件

-----> Define config file name to create

What is the name of your web site or profile ysis ?

Example:

Example: demo

Your web site, virtual server or profile name:

>

此处是询问你的站点或虚拟主机或配置文件的名称,将生成一个awstats.此处输入的名称.conf的配置文件,如果只分析一个站点,直接用站点域名就好了,如果要分析多个站点,可以把此处生成的文件做为公用的模板,取个易理解的名字好了,本文示例为。

-----> 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):

>

此处是询问AWStats配置文件的存放路径,必须为/etc/awstats,、/usr/local/etc/awstats、 /etc或者与awstats.pl文件同一目录,默认为/etc/awstats,直接回车接受默认值。

3.4 设置apache日志精确的按天分割

使用AWStats进行日志分析需要尽可能准确的按天保存日志,这样可以提高AWStats的处理速度。

本文推荐使用工具,安装方法请参阅本文作者另外一篇文章“日志分割工具cronolog”,这里不再详述。

本文示例为:

CustomLog "|/usr/local/cronolog/sbin/cronolog /usr/local/apache-2.2.6/logs/access_log.%Y%m%d" combined

3.5设置apache配置文件

如果3.3节中正确检测到CustomLog指定的格式为common,则awstats_config.pl脚本已经正确更新了apache配置文件,可以跳过此步。


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-22769-2.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...