首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >AWSTATS -每日更新

AWSTATS -每日更新
EN

Stack Overflow用户
提问于 2015-04-21 13:04:45
回答 1查看 846关注 0票数 0

我想有自动每日统计更新我的网站。我写了一个这样的批处理脚本:

代码语言:javascript
复制
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时,我看到了Never updated (See 'Build/Update on awstats_setup.html page),我看到了所有东西的0 (0名访问者,等等…)。。如果我删除-databasebreak=day并打开相同的页面,一切看起来都是完美的。如果这继续不起作用,我想我将执行一个任务调度程序,它每天运行我的批处理文件而不需要这个-databasebreak=day

EN

回答 1

Stack Overflow用户

发布于 2015-04-24 06:01:55

默认情况下,Awstats每月读取日志文件并创建摘要文本文件。意思是:每个月都会有自己的摘要文件: awstatsmmyyyy.DomainName.txt

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

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

  • 如果您想每天运行awstat.pl更新,只需每天运行cron作业/调度作业即可。
  • 如果您想每天进行报告,我认为Awstats目前还不支持此功能。但是,您可以使用Awstats和数据库按日中断,并修改一些源代码,以便按日、周、月、year....by日期范围或任何您想要的方式获得报告。
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29773060

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档