perl awstats.pl -config=mysite -output=unknownos -staticlinks > awstats.mysite.unknownos.html
perl awstats.pl -config=mysite -output=refererse -staticlinks > awstats.mysite.refererse.html
perl awstats.pl -config=mysite -output=refererpages -staticlinks > awstats.mysite.refererpages.html
perl awstats.pl -config=mysite -output=keyphrases -staticlinks > awstats.mysite.keyphrases.html
perl awstats.pl -config=mysite -output=keywords -staticlinks > awstats.mysite.keywords.html
perl awstats.pl -config=mysite -output=errors404 -staticlinks > awstats.mysite.errors404.html
其中:
mysite是先前配置时指定的配置名,AWStats将会读取先前指定的配置目录下的配置文件awstats.mysite.conf,如果不存在则读取awstats.conf。
如果要生成特定的年、月的报告,在命令行加上下面两个参数:-month=MM -year=YYYY,MM为2位数字的月份,YYYY为4位数字的带世纪的年份。
如果生成统计时使用了-databasebreak=day参数,此处也需要在命令行加上此参数,也需要指定-day=DD参数(DD为2位数字的日期)和上面介绍的-month=MM、 -year=YYYY两个参数。
如果生成统计时使用-DataDir参数指定与配置文件中不同的存储位置,此处也需要在命令行指定相应的-DataDir参数。
生成的报告默认为英文页面,如果要生成特定语言的报告,可以使用-lang=LL参数,LL为语言代码,中文为cn,全部代码可看AWStats cgi-bin/lang目录下的awstats-LL.txt。
另外,也可以使用AWStats工具目录下的awstats_buildstaticpages.pl 脚本来生成所有可能的静态页面,命令格式为:
/usr/local/awstats/tools/awstats_buildstaticpages.pl -config=mysite [-update] (other_awstats_options) [awstatsbuildstaticpages_options]
其中:
mysite是先前配置时指定的配置名,AWStats将会读取先前指定的配置目录下的配置文件awstats.mysite.conf,如果不存在则读取awstats.conf。
-update参数指明在生成静态面页前先更新统计,为可选项。
other_awstats_options 可以是任何AWStats的参数。
awstatsbuildstaticpages_options为此工具的特定参数,下面予以介绍:
-awstatsprog=/path/to/awstats.pl 此参数指定awstats.pl的路径。
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-22769-16.html
违法或者违背社会道德风尚的言论吧
#易烊千玺献声小王子##易烊千玺#早安
中国海空军控制了制空权和制海权