LinuxSir.cn,穿越时空的Linuxsir!

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

squid启动错误,squid.conf文件见内

[复制链接]
发表于 2003-7-29 09:12:16 | 显示全部楼层 |阅读模式
http_port 192.168.2.1:8080

hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

cache_mem 32 MB
cache_swap_low 90
cache_swap_high 95

cache_dir ufs /cache/squid 100 16 256
cache_access_log /cache/squid/access.log
cache_log /cache/squid/cache.log
cache_store_log /cache/squid/store.log

client_netmask 255.255.255.255

auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours

refresh_pattern ^ftp:                1440        20%        10080
refresh_pattern ^gopher:        1440        0%        1440
refresh_pattern .                0        20%        4320

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80                # http
acl Safe_ports port 21                # ftp
acl Safe_ports port 443 563        # https, snews
acl Safe_ports port 70                # gopher
acl Safe_ports port 210                # wais
acl Safe_ports port 1025-65535        # unregistered ports
acl Safe_ports port 280                # http-mgmt
acl Safe_ports port 488                # gss-http
acl Safe_ports port 591                # filemaker
acl Safe_ports port 777                # multiling http
acl CONNECT method CONNECT

http_access allow all

http_reply_access allow all

cache_mgr root@howlinux.net
visible_hostname HowProxy


启动的时候有错误,提示和cache有关!
我的/cache目录和以下log文件都存在,权限也设置了:help
发表于 2003-7-29 14:51:25 | 显示全部楼层
还是把出错信息也贴出来吧。
发表于 2005-8-25 02:00:28 | 显示全部楼层
[root@squid squid]# /usr/local/squid/sbin/squid -z
2005/08/26 01:56:47| Creating Swap Directories
FATAL: Failed to make swap directory /usr/local/squid/var/cache/00/00: (13) Permission denied
Squid Cache (Version 2.5.STABLE5): Terminated abnormally.
CPU Usage: 0.010 seconds = 0.010 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 6
回复 支持 反对

使用道具 举报

发表于 2005-8-25 15:29:40 | 显示全部楼层
squid启动时使用的是“squid”用户而不是root,你查看一下目录的权限看看
回复 支持 反对

使用道具 举报

发表于 2005-8-25 22:15:18 | 显示全部楼层
执行:
chown squid:squid /usr/local/squid/var/cache/
chmod 644 /usr/local/squid/var/cache/
回复 支持 反对

使用道具 举报

发表于 2005-8-26 11:52:10 | 显示全部楼层
楼顶,好!顶!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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