close

如果掛proxy or Squid有時會發現

下載超過2G的檔案會停在2~2.1G就停了

檔案下載不完全

/var/log/squid/cache.log會出現

 WARNING: preventing off_t overflow for ......................(省略)

原因: 

      原文

You ran ran 32-bit application trying to store 
more than 2G of data in a file without being 
compiled with LFS support. 2GB = 2^(32-1) 
bytes and is the limit on what the POSIX file 
I/O API can handle in 32-bit mode.

Fix: Recompile the ICAP server with LFS support
 (64-bit file I/O), or move to a 64-bit OS if 
supported by CPU and forget all of these 32-bit
issues...

簡單說,就是32bit作業系統的問題,換成64bit就好了

不然就加入這個option

./configure

.

.

.

(略)

.

.

.

--with-build-environment=POSIX_V6_ILP32_OFFBIG  \\32 bits with large file support

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 slinbody 的頭像
    slinbody

    495884965

    slinbody 發表在 痞客邦 留言(0) 人氣()