LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 767|回复: 0

标题: 请教:SUSE 10.1自带的squid无法正确运行~?

[复制链接]
发表于 2006-7-14 08:45:34 | 显示全部楼层 |阅读模式
运行 squid -z 提示出错,但cache目录权限已经设置全权开放。

[color="Gray"]
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
[color="Red"]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中可以正确运行。

[color="Teal"]
#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



[从suse转版过来,那里没有人回复]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表