免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3432 | 回复: 4
打印 上一主题 下一主题

[proxy] squid异常退出救助,附启动日志和conf配置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-12 16:56 |只看该作者 |倒序浏览
本人菜鸟一个,刚刚接触linux和squid,按照网上的教程配置了squid.conf后启动squid,单机用QQ测试了一下代理服务可以连上,但是只要一连上
代理服务器后就出现如下提示,请问如何解决?

[root@localhost local]# /usr/local/squid/sbin/squid -NCd1
2008/11/12 09:08:32| Starting Squid Cache version 2.5.STABLE2 for
i686-pc-linux-gnu...
2008/11/12 09:08:32| Process ID 23453
2008/11/12 09:08:32| With 1024 file descriptors available
2008/11/12 09:08:32| Performing DNS Tests...
2008/11/12 09:08:32| Successful DNS name lookup tests...
2008/11/12 09:08:32| helperOpenServers: Starting 5 'dnsserver' processes
2008/11/12 09:08:32| helperOpenServers: Starting 5 'squid' processes
2008/11/12 09:08:32| helperOpenServers: Starting 10 'ncsa_auth' processes
2008/11/12 09:08:32| Unlinkd pipe opened on FD 28
2008/11/12 09:08:32| Swap maxSize 3072000 KB, estimated 236307 objects
2008/11/12 09:08:32| Target number of buckets: 11815
2008/11/12 09:08:32| Using 16384 Store buckets
2008/11/12 09:08:32| Max Mem  size: 393216 KB
2008/11/12 09:08:32| Max Swap size: 3072000 KB
2008/11/12 09:08:32| Local cache digest enabled; rebuild/rewrite every
3600/3600 sec
2008/11/12 09:08:32| Rebuilding storage in /usr/local/squid/var/cache1 (CLEAN)
2008/11/12 09:08:32| Using Least Load store dir selection
2008/11/12 09:08:32| chdir: /usr/local/squid/var/cache: (2) No such file or
directory
2008/11/12 09:08:32| Current Directory is /usr/local
2008/11/12 09:08:32| Loaded Icons.
2008/11/12 09:08:32| Accepting HTTP connections at 192.168.1.112, port 3128,
FD 29.
2008/11/12 09:08:32| Accepting ICP messages at 0.0.0.0, port 3130, FD 30.
2008/11/12 09:08:32| Accepting SNMP messages on port 3401, FD 31.
2008/11/12 09:08:32| WCCP Disabled.
2008/11/12 09:08:32| Pinger socket opened on FD 33
2008/11/12 09:08:32| Ready to serve requests.
2008/11/12 09:08:33| Done scanning /usr/local/squid/var/cache1 swaplog (0
entries)
2008/11/12 09:08:33| Finished rebuilding storage from disk.
2008/11/12 09:08:33|         0 Entries scanned
2008/11/12 09:08:33|         0 Invalid entries.
2008/11/12 09:08:33|         0 With invalid flags.
2008/11/12 09:08:33|         0 Objects loaded.
2008/11/12 09:08:33|         0 Objects expired.
2008/11/12 09:08:33|         0 Objects cancelled.
2008/11/12 09:08:33|         0 Duplicate URLs purged.
2008/11/12 09:08:33|         0 Swapfile clashes avoided.
2008/11/12 09:08:33|   Took 0.8 seconds (   0.0 objects/sec).
2008/11/12 09:08:33| Beginning Validation Procedure
2008/11/12 09:08:33|   Completed Validation Procedure
2008/11/12 09:08:33|   Validated 0 Entries
2008/11/12 09:08:33|   store_swap_size = 0k
2008/11/12 09:08:33| storeLateRelease: released 0 objects
2008/11/12 09:08:43| WARNING: redirector #1 (FD 10) exited
2008/11/12 09:08:43| WARNING: redirector #2 (FD 11) exited
2008/11/12 09:08:43| icmpRecv: recv: (111) Connection refused
2008/11/12 09:08:43| Closing Pinger socket on FD 33
2008/11/12 09:08:43| WARNING: redirector #3 (FD 12) exited
2008/11/12 09:08:43| WARNING: redirector #4 (FD 13) exited
2008/11/12 09:08:43| storeDirWriteCleanLogs: Starting...
2008/11/12 09:08:43| WARNING: Closing open FD   29
2008/11/12 09:08:43|   Finished.  Wrote 0 entries.
2008/11/12 09:08:43|   Took 0.0 seconds (   0.0 entries/sec).
FATAL: Too few redirector processes are running
Aborted

[ 本帖最后由 mig-21-93 于 2008-11-12 17:10 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-11-12 17:04 |只看该作者
squid.conf除了端口等几个地方外主要就做了以下的改动
no_cache deny QUERY
maximum_object_size 4194304 KB
maximum_object_size_in_memory 512000 KB
cache_dir ufs /usr/local/squid/var/cache1 3000 16 256
auth_param basic program /usr/local/squid/bin/ncsa_auth /etc/squid/passwd
auth_param basic children 10
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 20 hours
acl all src 0.0.0.0/0.0.0.0
acl nobody src 192.168.1.111/32
acl good src 192.168.1.112/32
acl bad src 192.168.1.155/32
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80                # http
acl Safe_ports port 21                # ftp
acl Safe_ports port 443 563        # https, snews
acl Safe_ports port 70                # gopher
acl Safe_ports port 210                # wais
acl Safe_ports port 1025-65535        # unregistered ports
acl Safe_ports port 280                # http-mgmt
acl Safe_ports port 488                # gss-http
acl Safe_ports port 591                # filemaker
acl Safe_ports port 777                # multiling http
acl CONNECT method CONNECT
acl normal proxy_auth REQUIRED
acl worktime time MTWHF 8:00-19:30
http_access deny !worktime
http_access deny bad
http_access allow nobody
http_access allow normal
http_access deny all


已设置用户权限,更改配置后也重新编译过

论坛徽章:
0
3 [报告]
发表于 2008-11-12 17:34 |只看该作者
FATAL: Too few redirector processes are running
从报错上看是你的redirector 进程不够,导致squiddown掉

论坛徽章:
0
4 [报告]
发表于 2008-11-12 17:44 |只看该作者
额...也就是说把配置里的redirector注释掉就行了?

论坛徽章:
0
5 [报告]
发表于 2008-11-12 18:01 |只看该作者
。。。。。。的确好了,非常感谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP