问一个squid代理服务器的问题

由 tahaomei 在 03-22-2004 22:14 发表:

问一个squid代理服务器的问题

在redhat9.0下编译安装squid-2.5.STABLE5.tar.bz2后,进行squid的初始化工作时出现如下错误提示

[root@redhat root]# /var/squid/sbin/squid -z

FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname'

Squid Cache (Version 2.5.STABLE5): Terminated abnormally.

CPU Usage: 0.030 seconds = 0.010 user + 0.020 sys

Maximum Resident Size: 0 KB

Page faults with physical i/o: 236

Aborted

可是,我在/etc/hosts里设置了域名解析

我的/etc/hosts文件如下

[root@redhat root]# vi /etc/hosts

Do not remove the following line, or various programs

that require network functionality will fail.

127.0.0.1 redhat localhost.localdomain localhost

<我的ip地址> redhat redhat.tahaomei.com redhat

请问什么原因?


由 tahaomei 在 03-22-2004 22:49 发表:


刚才这个问题解决了。要在squid.conf文件里设置visible_hostname,但是又出现了如下的问题了。

/var/squid/sbin/squid -z

2004/03/22 22:46:55| Creating Swap Directories

FATAL: Failed to make swap directory /var/squid/var/cache: (13) Permission denied

Squid Cache (Version 2.5.STABLE5): Terminated abnormally.

CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys

Maximum Resident Size: 0 KB

Page faults with physical i/o: 6

为什么啊?我现在是管理员,都没办法创建缓存目录阿????

什么原因?


由 tahaomei 在 03-22-2004 23:30 发表:


问题解决了


由 wallace888 在 03-22-2004 23:59 发表:


说说如何解决的呀?


由 szkingrose 在 03-23-2004 07:46 发表:


肯定是没有权限,不能写入文件。</p

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus