- 1、本文档共2页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
awstats日志分析解析 工具的作用跟安装文档
awstats日志分析工具的安装和使用
awstats是一个较好的日志分析工具,主要是用来分析apache和iis的日志,对日志格式重新配置之后可支持nginx。awstats需要perl支持,需先安装perl。
使用方式上,为避免在web服务器上运行统计程序影响系统负载,计划每天把日志文件下载到另外的计算机,运行统计程序。
安装步骤(windows下):
1 下载windows版awstats和perl
2 运行perl安装程序,安装perl环境
3 运行awstats安装程序,安装awstats
4 awstats安装过程中配置参数,如下
----- 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 files\apache group\apache\conf\httpd.conf
Config file path (none to skip web server setup):
# none #因为我们这里用的是 Nginx,所以写 none,跳过。
回车
Your web server config file(s) could not be found.
You will need to setup your web server manually to declare AWStats
script as a CGI, if you want to build reports dynamically.
See AWStats setup documentation (file docs/index.html)
----- 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 #y 创建一个新的统计配置
回车
----- Define config file name to create
What is the name of your web site or profile analysis ?
Example:
Example: demo
Your web site, virtual server or profile name:
# #统计网站的域名 例:
回车
----- 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):
#
使用默认直接回车,接下来便会出现以下的提示
---- 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=
Or if you have several config files and prefer having only one command:
/usr/local/awstats/tools/awstats_updateall.pl now
Press ENTER to continue... 回车继续
安装结束
以上为windows下的安装,linux下的安装过程与此类似
5 修改配置文件,修改cgi-bin中的awstats.model.conf为.conf,修改文件中的
配置参数,写入日志文件路径、日志格式、域名、生成的统计文件等参数。
6 编写运行
您可能关注的文档
- anbound-汽车竞争情报-第320期文档.doc
- anbound-汽车竞争情报-第390期文档.doc
- anbound-新能源-第137期文档.doc
- anbound-医药竞争情报-第318期文档.doc
- anbound-医药竞争情报-第323期文档.doc
- anbound-银行汇编-第448期文档.doc
- anbound-战略观察-第215期:中国应该调整农业战 略文档.doc
- andon系统(看板系统)在汽车制造业的运用文档.doc
- android手机如何使用电子邮件文档.docx
- android系统进程间通信binder机制在运用程序框架层的java接口源代码文档.docx
- 实习老师工作心得模板10篇2.docx
- 实习教师心得体会1.docx
- 2024年深刻理解《中国共产党纪律处分条例》党课讲稿与党纪学习教育“七一”党课讲稿【2篇文】.docx
- 2024年党课讲稿:学纪、知纪、明纪、守纪,自觉遵守党的纪律与党纪学习教育党课讲稿:《中国共产党纪律处分条例》解读与实践【2篇】供参考.docx
- 2024年党纪学习教育党课讲稿:深入学习《纪律处分条例》,以实干实绩推动党风廉政建设与学习贯彻新修订《中国共产党纪律处分条例》宣讲党课辅导党课讲稿【两篇文】.docx
- c13济钱俊杰-实验报告.pdf
- 实习个人心得体会1.docx
- 实习2022学生心得体会1.docx
- 实习心得体会及感悟优秀10篇.docx
- 实习工作心得模板1.docx
文档评论(0)