LinuxSir.cn,穿越时空的Linuxsir!

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

超难问题,squid,请班主看一下

[复制链接]
发表于 2005-12-19 16:56:49 | 显示全部楼层 |阅读模式
操作系统:AS 4.0
squid   2.5.STABLE6
硬件: IBM pc server

/cache 是这样建立的
mkdir /cache
mkfs.ext3 /dev/ramdisk
mount /dev/ramdisk /cache
chown squid.squid /cache


报错如下:
2005/12/15 09:45:46| /cache: (13) Permission denied
> FATAL: Failed to verify one of the swap directories, Check cache.log
> for details.  Run 'squid -z' to create swap directories
> if needed, or if running Squid for the first time.
> Squid Cache (Version 2.5.STABLE6): Terminated abnormally.
> CPU Usage: 0.013 seconds = 0.006 user + 0.007 sys
发表于 2005-12-19 18:00:28 | 显示全部楼层
squid -z
回复 支持 反对

使用道具 举报

发表于 2005-12-20 11:19:56 | 显示全部楼层
无法写/cache.
你需要用squid -z /cache来创建cache文件系统.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-20 12:26:10 | 显示全部楼层
是否可以具体一点,根据此人的说法,是在网上发贴半年都无法解决的问题
回复 支持 反对

使用道具 举报

发表于 2005-12-20 12:45:07 | 显示全部楼层
Post by yvqq
是否可以具体一点,根据此人的说法,是在网上发贴半年都无法解决的问题

半年解决不了是你rpwt!这么简单且愚蠢的问题,自己不看日志报错信息!
回复 支持 反对

使用道具 举报

发表于 2005-12-22 20:12:06 | 显示全部楼层
试了没应,

[root@localhost squid]# squid -z
2005/12/22 20:07:55| Creating Swap Directories
[root@localhost squid]# /etc/init.d/squid start
启动 squid:....................                           [失败]
[root@localhost squid]#
[root@localhost squid]# cd /

2005/12/22 20:08:16| /cache: (13) Permission denied
FATAL:  Failed to verify one of the swap directories, Check cache.log
        for details.  Run 'squid -z' to create swap directories
        if needed, or if running Squid for the first time.
Squid Cache (Version 2.5.STABLE6): Terminated abnormally.
CPU Usage: 0.031 seconds = 0.016 user + 0.015 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
[root@localhost squid]#

[root@localhost squid]# ls /cache/
00  01  02  03  04  05  06  07  08  09  0A  0B  0C  0D  0E  0F
[root@localhost squid]# ll -d /cache/
drwxr-xr-x  18 squid squid 1024 12月 22 20:03 /cache/
[root@localhost squid]#
回复 支持 反对

使用道具 举报

发表于 2007-1-18 16:06:00 | 显示全部楼层
支持kevin老师,这么简单的问题也叫超难问题,好意思的啊······
改下权限 squid -z
回复 支持 反对

使用道具 举报

发表于 2007-1-19 11:32:35 | 显示全部楼层
试试看
mkdir /cache
mkfs.ext3 /dev/ramdisk
mount /dev/ramdisk /cache
mkdir /cache/cahce
chown squid.squid /cache/cache
squid -z /cache/cache
回复 支持 反对

使用道具 举报

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

本版积分规则

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