- 论坛徽章:
- 0
|
安装的是suse10.1自带的 Squid Cache: Version 2.5.STABLE12
运行 squid -z 提示出错,但cache目录权限已经设置全权开放。
erp:~ # ls /var/spool/ -ls
总计 40
4 drwx------ 2 at at 4096 2006-07-05 14:27 atjobs
4 drwx------ 2 at at 4096 2006-05-02 15:47 atspool
4 drwsrwsrwt 2 nobody nogroup 4096 2006-07-12 14:15 cache
..................................
erp:~ # squid -z
2006/07/12 16:30:09| Creating Swap Directories
FATAL: Failed to make swap directory /var/spool/cache/00: (13) Permission deniedSquid Cache (Version 2.5.STABLE12): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
erp:~ #
Squid的配置文件如下:在FC5中可以正确运行。
#squid.conf - a very basic config file for squid
#Turn logging to it's lowest level
debug_options ALL,1
#defines a group (or Access Control List) that includes all IP addresses
acl all src 0.0.0.0/0.0.0.0
#define RAM used
cache_mem 32 MB
#defines the cache size
cache_dir ufs /var/spool/cache 100 16 256
#allow all sites to use connect to us via HTTP
http_access allow all
#allow all sites to use us as a sibling
icp_access allow all
#http_port 3128
http_port 3128
#test the following sites to check that we are connected
#dns_testnames internic.net usc.edu cs.colorado.edu mit.edu yale.edu
#run as the squid user
cache_effective_user nobody nogroup
#visible_hostname
visible_hostname squid2
[/COLOR]
[ 本帖最后由 seayou_wey 于 2006-7-14 10:18 编辑 ] |
|