- 论坛徽章:
- 0
|
服务器配置双志强2.8 2G内存 freebsd 6.2操作系统 squid/2.6.STABLE13
基本每天要死机一次,换了一台机器也是如此,请教大家问题出在什么地方!
suqid配置如下:
- http_port xxx.xxx.xxx.xxx:80 accel vhost vport
- acl OverConnLimit maxconn 20
- http_access deny OverConnLimit
- cache_effective_user squid
- cache_effective_group squid
- tcp_recv_bufsize 65535 bytes
- #hierarchy_stoplist cgi-bin ?
- #acl QUERY urlpath_regex cgi-bin \?
- #cache deny QUERY
- collapsed_forwarding on
- cache_mem 512 MB
- cache_swap_low 85
- cache_swap_high 95
- maximum_object_size 1024 KB
- minimum_object_size 0 KB
- maximum_object_size_in_memory 80 KB
- ipcache_size 1024
- ipcache_low 90
- ipcache_high 95
- cache_replacement_policy lru
- memory_replacement_policy lru
- auth_param basic realm Squid proxy-caching web server
- auth_param basic credentialsttl 2 hours
- auth_param basic casesensitive off
- forward_timeout 20 seconds
- connect_timeout 15 seconds
- # peer_connect_timeout 30 seconds
- #read_timeout 3 minutes
- #request_timeout 1 minutes
- #persistent_request_timeout 15 seconds
- #client_lifetime 15 minutes
- #half_closed_clients off
- # pconn_timeout 120 seconds
- # ident_timeout 10 seconds
- #shutdown_lifetime 5 seconds
- #refresh_pattern -i \.php$ 1 20% 2 reload-into-ims
- #refresh_pattern -i \.htm$ 1 20% 2 reload-into-ims
- #refresh_pattern -i \.jpg$ 60 50% 1440 reload-into-ims
- #refresh_pattern -i \.gif$ 60 50% 1440 reload-into-ims
- #refresh_pattern -i \.png$ 60 50% 1440 reload-into-ims
- visible_hostname [url]www.123.com[/url]
- cache_mgr [email]webmaster@123.com[/email]
- cache_dir ufs /cache2 10240 16 256
- #coredump_dir /cache1/logs
- #cache_log /usr/local/squid/logs/cache.log
- #cache_log none
- cache_store_log none
- #emulate_httpd_log on
- #logfile_rotate 2
- error_directory /usr/local/etc/squid/errors/Simplify_Chinese/
- acl all src 0.0.0.0/0.0.0.0
- http_access allow all
复制代码 |
|