squid異常退出救助,附啟動日誌和conf配置
本人菜鳥一個,剛剛接觸linux和squid,按照網上的教程配置了squid.conf后啟動squid,單機用QQ測試了一下代理服務可以連上,但是只要一連上
代理伺服器后就出現如下提示,請問如何解決?
# /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 編輯 ]
《解決方案》
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
已設置用戶許可權,更改配置后也重新編譯過
《解決方案》
FATAL: Too few redirector processes are running
從報錯上看是你的redirector 進程不夠,導致squiddown掉
《解決方案》
額...也就是說把配置里的redirector註釋掉就行了?
《解決方案》
。。。。。。的確好了,非常感謝