Windows AWSTATS-每日更新

Windows AWSTATS-每日更新,windows,batch-file,awstats,Windows,Batch File,Awstats,我想有自动每日统计更新我的网站。 我编写了如下批处理脚本: rem c:Perl64binperl.exe….toolsawstats_buildstaticpages.pl -config=mobilekat -lang=IT -databasebreak=day c:Perl64binperl.exe "awstats.pl" -config=MobileKat -update -databasebreak=day c:Perl64binperl.exe "awstats.pl" -con

我想有自动每日统计更新我的网站。 我编写了如下批处理脚本:

rem c:Perl64binperl.exe….toolsawstats_buildstaticpages.pl -config=mobilekat -lang=IT -databasebreak=day

c:Perl64binperl.exe "awstats.pl" -config=MobileKat -update -databasebreak=day
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output > awstatsawstats.MobileKat.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=alldomains >  awstatsawstats.MobileKat.alldomains.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=allhosts >  awstatsawstats.MobileKat.allhosts.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=lasthosts > awstatsawstats.MobileKat.lasthosts.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=unknownip > awstatsawstats.MobileKat.unknownip.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=allrobots > awstatsawstats.MobileKat.allrobots.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=lastrobots > awstatsawstats.MobileKat.lastrobots.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=session > awstatsawstats.MobileKat.session.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=urldetail > awstatsawstats.MobileKat.urldetail.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=urlentry > awstatsawstats.MobileKat.urlentry.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=urlexit > awstatsawstats.MobileKat.urlexit.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=osdetail > awstatsawstats.MobileKat.osdetail.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=unknownos >  awstatsawstats.MobileKat.unknownos.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=browserdetail >  awstatsawstats.MobileKat.browserdetail.html 
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=unknownbrowser >  awstatsawstats.MobileKat.unknownbrowser.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=downloads >  awstatsawstats.MobileKat.downloads.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=refererse >  awstatsawstats.MobileKat.refererse.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=refererpages > awstatsawstats.MobileKat.refererpages.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=keyphrases > awstatsawstats.MobileKat.keyphrases.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=keywords > awstatsawstats.MobileKat.keywords.html
c:Perl64binperl.exe "awstats.pl" -config=MobileKat -staticlinks -lang=IT -output=errors404 > awstatsawstats.MobileKat.errors404.html

但是,当我打开页面
awstats.MobileKat.html
时,我看到
从未更新过(请参见“awstats\u setup.html页面上的构建/更新)
并且我看到了所有内容中的0个(0个访问者等等…)。如果我删除
-databasebreak=day
并打开同一个页面,那么一切似乎都很正常。如果这仍然不起作用,我想我会做一个任务调度程序,每天运行批处理文件,默认情况下不使用这个
-databasebreak=day

Awstats读取日志文件并按月创建摘要文本文件。 这意味着:每个月都会有自己的摘要文件:awstatsmmyyyy.DomainName.txt

Databasebreak=day意味着:每天将创建摘要文件:每天都有自己的摘要文件:awstatsmmyyyydd.DomainName.txt

我不明白你说的什么是“自动每日统计更新”

  • 如果您想每天运行awstat.pl update,只需每天运行一个cron作业/调度作业即可

  • 如果你想每天报告,我认为Awstats目前还不支持这个功能。但是,您可以使用Awstats更新和数据库按天中断,并修改一些源代码,以按天、周、月、年……按日期范围或任何您想要的方式获取报告