1.問題描述:
今天解壓tar包遇到這樣一個問題
使用命令:tar -zxvf xxxxx.tar.gz
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
2.問題分析:
通過: md5sum 文件名 命令,比對兩台服務器上xxxxx.tar.gz 包的文件校驗碼不一樣,說明在文件scp移動中就被損壞了,最終發現目標服務器內存不足引起。打的包有16G,通過其他方式(比如清理磁盤或掛載其他服務器)達到scp目的,再解壓就可以了。