LinuxSir.cn,穿越时空的Linuxsir!

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

请教,关于配置squid

[复制链接]
发表于 2004-8-25 23:02:54 | 显示全部楼层 |阅读模式
配置了squid.conf 后 squid -z 发现提示FATAL: Could not determine fully qualified hostname.  Please set 'visible_hostname'
请各位大虾帮帮忙!!!
发表于 2004-8-27 09:19:27 | 显示全部楼层
找到visible_hostname一行,去掉注释号,在后面加上一行名字即可
发表于 2004-8-27 09:42:57 | 显示全部楼层
好象不行了
我是增加一行 visible_hostname=abc,原?頉]有注释掉.
squid -z 出現提示
2004/08/27 16:44:55| parseConfigFile: line 1973 unrecognized: 'visible_hostname=abc'
FATAL: Could not determine fully qualified hostname.  Please set 'visible_hostname'

Squid Cache (Version 2.5.STABLE3): Terminated abnormally.
CPU Usage: 0.010 seconds = 0.000 user + 0.010 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 399
Aborted
发表于 2004-8-27 15:00:21 | 显示全部楼层
语法或是机器名不对。
发表于 2004-12-2 08:12:59 | 显示全部楼层
应该这么写
visible_hostname 主机名
发表于 2004-12-2 08:42:11 | 显示全部楼层
最简单办法,加入:localhost
发表于 2004-12-2 09:34:43 | 显示全部楼层
然后运行 squid -z
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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