- 论坛徽章:
- 0
|
系统平台 freebsd 7.2-release
SQUID: Version 3.0.STABLE17
编译选项:
- configure options: '--prefix=/usr/local/squid' '--enable-icmp' '--enable-kill-parent-hack' '--enable-snmp' '--enable-cache-digests' '--enable-arp-acl' '--enable-poll' '--enable-underscore'
复制代码
squid.conf:
- access_log /squidlogs/access.log
- cache_log /squidlogs/cache.log
- cache_store_log /squidlogs/store.log
- pid_filename /squidlogs/squid.pid
-
- cache_effective_user squid
- cache_effective_group squid
复制代码
文件夹权限
drwxrwxr-x 3 squid squid 512 Jul 29 04:49 squidlogs
子文件夹权限
-rwxrwxr-x 1 squid squid 127215 Jul 29 06:21 access.log
drwxr-x--- 18 squid squid 512 Jul 29 05:42 cache
-rw-r----- 1 squid squid 20928 Jul 29 05:42 cache.log
-rwxrwxr-x 1 root squid 5 Jul 29 05:42 squid.pid
-rw-r----- 1 squid squid 163733 Jul 29 06:21 store.log
系统中创建SQUID用户和组
用户:
squid:*:1002:0:User &:/home/squid:/bin/sh
组:
squid:*:1002:
出现的问题是:
Jul 29 06:22:12 hz squid[3190]: Cannot open '/squidlogs/access.log' for writing. The parent directory must be writeable by the user 'squid', which is the cache_effective_user set in squid.conf.
Jul 29 06:22:12 hz squid[3169]: Squid Parent: child process 3190 exited with status 1
Jul 29 06:22:12 hz squid[3169]: Exiting due to repeated, frequent failures
[ 本帖最后由 liudew 于 2009-7-29 14:47 编辑 ] |
|