Chinaunix

标题: 在linux redhat下输入命令,出错提示:SARG: File not found: [打印本页]

作者: linblue    时间: 2012-09-05 10:57
标题: 在linux redhat下输入命令,出错提示:SARG: File not found:
本人在linux下配置了SARG,但运行# sarg /usr/local/sarg/sarg_url.conf时
提示错误SARG: File not found: /usr/local/squid/var/logs/access.log

sarg.conf配置如下:

access_log /squid/var/logs/access.log.0

charset UTF-8

max_elapsed 28800000

long_url no

exclude_string ";"

datafile_url name

datafile /squid/txt/squid_url_file.txt

datafile_fields user;date;time;url;connect;bytes;in_cache;out_cache;elapsed

resolve_ip yes

user_ip no



请问是否是我的

access_log /squid/var/logs/access.log.0

这一参数配置错误?access_log是指定squid配置文件绝对路径??

squid.conf如下:

http_port 8080

icp_port 8030

cache_mem 1300 MB

cache_swap_low 80

cache_swap_high 85

maximum_object_size 10240 KB

cache_dir ufs /squid/var/logs 200000MB 16 256

cache_access_log /squid/var/logs/access.log

cache_log /squid/var/logs/cache.log

cache_store_log none

pid_filename /var/run/squid.pid

httpd_accel_host virtual

httpd_accel_port 80

httpd_accel_with_proxy on

httpd_accel_uses_host_header on

acl all src 0/0

acl denymac arp "/usr/local/squid/etc/denymac.txt"

http_access deny denymac

http_access allow all

cache_effective_user squid

cache_effective_group squid

coredump_dir /var/spool/squid

strip_query_terms on



请问SARG中选项的access_log该填那个绝对路径?





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2