- 论坛徽章:
- 0
|
昨天启动squid的时候却遇到了一大串问题,
先说说的的平台 redhat AS4 ,squid 是3.0的,正面是squid.conf里边的代码和错误代码,希望各位抽一点点的时间来看一下,我实在不知道是怎么回事了,就连cache_men都提示说有问题,先谢谢各位{:3_193:}
1 以下是我squid.conf的平台,就这几行代码,因为我刚学,所以就搞点简单的;
http_port 8080
cache_men 512 MB
cache_dir ufs /var/spool/squid 1024 16 256
cache_peer 172.16.96.20 parent 8080 0 no-query
acl advance arp 00.11.D8.BD.AB.7A
acl allow_domain dst 0.0.0.0/0
acl all src 0.0.0.0/0
http_access allow advance allow_domain
http_access deny all
never_direct allow all
2 以下是错误的提示:
[root@Proxy ~]# /home/test/squid_3.0/src/squid -z
2010/12/17 14:19:41| cache_cf.cc(346) squid.conf:4 unrecognized: 'cache_men'
2010/12/17 14:19:41| decode_eth: Invalid ethernet address '00'
2010/12/17 14:19:41| squid.conf line 13: acl advance arp 00.11.D8.BD.AB.7A
2010/12/17 14:19:41| aclParseArpData: Ignoring invalid ARP acl entry: can't pars e '00'
2010/12/17 14:19:41| Warning: empty ACL: acl advance arp 00.11.D8.BD.AB.7A
2010/12/17 14:19:41| WARNING: '0.0.0.0/0.0.0.0' is a subnetwork of '0.0.0.0/0.0. 0.0'
2010/12/17 14:19:41| WARNING: because of this '0.0.0.0/0.0.0.0' is ignored to ke ep splay tree searching predictable
2010/12/17 14:19:41| WARNING: You should probably remove '0.0.0.0/0.0.0.0' from the ACL named 'all'
FATAL: MIME Config Table /usr/local/squid/etc/mime.conf: (2) No such file or dir ectory
Squid Cache (Version 3.0.STABLE9): Terminated abnormally.
CPU Usage: 0.012 seconds = 0.007 user + 0.005 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
You have mail in /var/spool/mail/root
3.我用检查语法的命令,却说不够权限,但我已经是用root这个用户的了,怎么没有权限了呢?
[root@Proxy ~]# /usr/local/squid/etc/squid.conf -k parse
bash: /usr/local/squid/etc/squid.conf: 权限不够 |
|