我已经安装了Squid
yum install squid
并遵循这个提示通过指示。
当我开始Squid和它显示的错误
init_cache_dir /var/spool/squid... /etc/init.d/squid: line 62: 15908 Aborted $SQUID -z -F -D /var/log/squid/squid.out 2>&1
一些日志在这里…
2012/02/09 15:57:37 | 无法识别的基本身份validationscheme参数“childred”
FATAL:auth_param基本程序/ usr / lib / squid / ncsa_auth:(2)没有这样的文件或目录
Squidcaching(版本2.6.STABLE21):exception终止。
CPU使用情况:0.004秒= 0.000用户+ 0.004系统
最大常驻尺寸:9824 KB
具有物理I / O的页面错误:0
编辑我已经搜查,输出是
dpkg-query:无法打开包信息文件`/ var / lib / dpkg / status'进行读取:没有这样的文件或目录
任何人都可以提供一些解决scheme吗?
2我认为的问题。
1。
根据错误文件/usr/lib/squid/ncsa_auth
不存在。 您可以通过运行以下命令来检查:
file /usr/lib/squid/ncsa_auth
如果你不想让Squid在没有身份validation的情况下运行,那么看看你的squid-config和注释行,这些都与身份validation有关。
你的文件可能包含以下几行:
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd auth_param basic children 5 auth_param basic realm Bla bla what you show your users auth_param basic credentialsttl 2 hours auth_param basic case sensitive off
如果您想在系统上findncsa_auth,请使用以下命令:
rpm -qa | grep ncsa_auth
或者,或者:
updatedb && locate ncsa_auth
然后,您可以在configuration文件中更改位置。 确保鱿鱼用户有适当的二进制权限。
2。
你在你的configuration中犯了一个错字。
childred
应该是children
。 请参阅上面的config-exerpt。