squid3.0stable18錯誤

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

squid3.0stable18錯誤

cache.log
2009/08/27 20:49:55| HTCP Disabled.
2009/08/27 20:49:55| sendto FD 17: (1) Operation not permitted
2009/08/27 20:49:55| ipcCreate: CHILD: hello write test failed
????
《解決方案》

Starting Squid Cache version 3.0.STABLE18 for i686-pc-linux-gnu...
2009/08/27 21:50:40| Process ID 20742
2009/08/27 21:50:40| With 65535 file descriptors available
2009/08/27 21:50:40| Performing DNS Tests...
2009/08/27 21:50:40| Successful DNS name lookup tests...
2009/08/27 21:50:40| helperOpenServers: Starting 5/5 'dnsserver' processes
2009/08/27 21:50:40| User-Agent logging is disabled.
2009/08/27 21:50:40| Referer logging is disabled.
2009/08/27 21:50:40| Unlinkd pipe opened on FD 16
2009/08/27 21:50:40| Swap maxSize 16384000 + 737280 KB, estimated 1317021 objects
2009/08/27 21:50:40| Target number of buckets: 65851
2009/08/27 21:50:40| Using 131072 Store buckets
2009/08/27 21:50:40| Max Mem  size: 737280 KB
2009/08/27 21:50:40| Max Swap size: 16384000 KB
2009/08/27 21:50:40| Rebuilding storage in /mnt/tt/squid (DIRTY)
2009/08/27 21:50:40| Using Least Load store dir selection
2009/08/27 21:50:40| Current Directory is /usr/local/squid3/sbin
2009/08/27 21:50:40| Loaded Icons.
2009/08/27 21:50:40| Accepting transparently proxied HTTP connections at 192.168.9.2, port 3128, FD 17.
2009/08/27 21:50:40| HTCP Disabled.
2009/08/27 21:50:40| sendto FD 18: (1) Operation not permitted
2009/08/27 21:50:40| ipcCreate: CHILD: hello write test failed


squid.conf
ttp_port 192.168.9.2:3128 transparent
cache_mem 720 MB
maximum_object_size_in_memory 4096 KB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 20000 KB
cache_dir aufs /mnt/tt/squid 16000 16 256
#cache_dir null /tmp
access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
log_fqdn on
visible_hostname virtual
#emulate_httpd_log on
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex -i cgi-bin \? \.asp \.php \.jsp \.cgi \.flv \.f4v \.asf \.m4v \.wmv \.ogg \.3gp \.ape \.wma \.mp2 \.rm \.avi \.rmvb \.mov \.torrent \.mpeg
no_cache deny QUERY
acl safe_ports port 80 81 21 443 563 70 210 1025-65535 280 488 591 777
http_access deny !safe_ports
acl our src 192.168.9.4 192.168.9.248 192.168.9.81
http_reply_access allow our
acl webdio dst 203.130.37.180
http_reply_access allow webdio
acl Media_MIME rep_mime_type  video audio
acl Media_URL urlpath_regex -i \.(flv|mp4|asf|m4v|wmv|f4v|ogg|3gp|ape|wma|mp2|rm|avi|rmvb|mov|torrent).*

http_reply_access deny Media_MIME
http_reply_access deny Media_URL
#acl me src 192.168.9.4 192.168.9.91
#http_access allow me
acl youxi dstdomain www.4399.com  www.go2play.net w2.bafang.cc www.5qg.com www.kaixin.com www.kaixin001.com
http_access deny youxi
#acl badhttp url_regex -i tudou.* youku.* video.sina.* ku6.* taobao.com
#http_access deny badhttp
acl alll  src  192.168.9.0/24
#reply_body_max_size 204800000 deny  all
http_access allow alll
http_access deny !alll
#error_directory /usr/share/squid/errors/Simplify_Chinese
《解決方案》

2.6的時候好好的,今天重新編譯了一下,
好鬱悶啊,google了一下,無果。
squid不是很熟!
請大家幫忙!
《解決方案》

『2009/08/27 21:50:40| sendto FD 18: (1) Operation not permitted』
1:檢查下目錄許可權
2:檢查下squid的運行用戶是否正確。
《解決方案》

回復 #4 xieaotian 的帖子

許可權都正常啊,重新編譯了也不行!
《解決方案》

啟動用戶名是什麼
《解決方案》

回復 #6 xieaotian 的帖子

nobody
《解決方案》

http://www.unixresources.net/linux/lf/58/archive/00/00/06/43/64322.html 看看這個,可能是DNS的問題。
你試著把 log_fqdn on註釋掉試試
《解決方案》

我的.configure
./configure --prefix=/usr/local/squid3 --enable-debug-cbdata --enable-async-io=180 --with-pthreads --enable-storeio="aufs,diskd,ufs,null" --enable-removal-policies="heap,lru" --enable-icmp --enable-delay-pools --enable-useragent-log --enable-referer-log --enable-kill-parent-hack --enable-arp-acl --enable-default-err-language=Simplify_Chinese --enable-err-languages="Simplify_Chinese English" --disable-poll --disable-wccp --disable-wccpv2 --disable-ident-lookups --disable-internal-dns --enable-basic-auth-helpers="NCSA" --enable-stacktrace --with-large-files --disable-mempools --with-filedescriptors=65535  --enable-x-accelerator-var
可能是有的選項出了問題,當我用./configure --prefix=/usr/local/squid3 就沒問題。
《解決方案》

原帖由 haoyu323 於 2009-8-28 11:12 發表 http://bbs2.chinaunix.net/images/common/back.gif
http://www.unixresources.net/linux/lf/58/archive/00/00/06/43/64322.html 看看這個,可能是DNS的問題。
你試著把 log_fqdn on註釋掉試試
註釋掉了也不行。




[火星人 ] squid3.0stable18錯誤已經有244次圍觀

http://coctec.com/docs/service/show-post-20963.html