加入收藏 | 设为首页 | 会员中心 | 我要投稿 佛山站长网 (https://www.0757zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

系统无法找到AWStats分析日志后写分析文件的目录导致的问题 - Linux系统

发布时间:2013-11-29 10:45:15 所属栏目:Linux 来源:站长网
导读:'DirData' parameter (./data) does not exist问题的解决 [root@localhost cgi-bin]#./awstats.pl -update -config=123 Error: AWStats database directory def
'DirData' parameter (./data) does not exist问题的解决

[root@localhost cgi-bin]#./awstats.pl -update -config=123

Error: AWStats database directory defined in config file by 'DirData' parameter (./data) does not exist or is not writable.

Check config file, permissions and AWStats documentation (in 'docs' directory).

这个问题应该是无法找到AWStats分析日志后写分析文件的目录导致的,我的情况是./data目 录在cgi-bin目录下已经存在,并且权限也没有任何问题,可以读写,但是仍然提示错误,一时间内问题无法 找到,最后发现了定义DirData变量的文件awstats.myConf.conf,在此文件中,指定了DirData的路径,默认 是./data,为了安全其间,我直接写了data目录的绝对路径,然后继续执行更新操作,问题解决。

[root@localhost cgi-bin]#./awstats.pl -update -config=123

Update for config "./awstats.123.conf"

With data in log file "/cicro/cws3/vhosts/www.123.gov.cn/ROOT/log/accesslogs/123_access_log.txt"...

Phase 1 : First bypass old records, searching new record...

Direct access after last parsed record (after line 4663337)

Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...

Jumped lines in file: 4663337

Found 4663337 already parsed records.

Parsed lines in file: 15023

Found 1 dropped records,

Found 0 corrupted records,

Found 0 old records,

Found 15022 new qualified records.

本文出自 “技术成就梦想” 博客,请务必保留 此出处http://ixdba.blog.51cto.com/2895551/526098

(编辑:佛山站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读