前文:http://www.bkjia.com/os/201202/119673.html
以下為個人總結
一:報錯信 息:
FATAL: Failed to verify one of the swap directories, Check cache.log
for details. Run 'squid -z' to create swap directories
if needed, or if running Squid for the first time.
Squid Cache (Version 2.6.STABLE18): Terminated abnormally.
未執行squid -z命令需要執行該命令初始化cache目錄,假如想觀察這個過程squid -zX
Creating Swap Directories
FATAL: Failed to make swap directory /usr/local/squid/var/cache/00:
(13) Permission denied
確認/usr/local/squid/var/cache目錄的所有組成都可被squid.conf給定的 使用者ID訪問
二:
WARNING:squidaio_queue_request: WARNING - Queue congestion
IO的隊列滿了, ,重諞一下原始碼,加大IO的 隊列或換一種IO方式。
編譯時間:--enable-async-io=40 (我的是40,少了)
三:
helperOpenServers: Starting 5 'dnsserver' processes
ipcCreate: fork: (12) Cannot allocate memory
WARNING: Cannot run '/opt/squid/libexec/dnsserver' process.
系統記憶體被耗光,沒有記憶體配置給squid的dns進程
四:
FATAL: xcalloc: Unable to allocate 1 blocks of 4108 bytes!
Squid 開啟大記憶體導致進程記憶體溢出
五:
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
????
cu的朋友總結是configure時編譯了--enable-icmp參數,去掉即可。