前言
當(dāng)你看到這篇文章的時(shí)候,不是一種治根的方法,甚至不能給你幫助
但多少給你提示,文件格式一開始就錯(cuò)了,不要在嘗試解決方法,直接換方式下載正確的格式文件
1. 問題所示
通過scp從window上傳一個(gè)zookeeper的壓縮包,之后再linux進(jìn)行tar解壓,出現(xiàn)如下錯(cuò)誤
root@gaokaoli:~# tar -zxvf zookeeper-3.4.11.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
截圖如下所示:文章來源:http://www.zghlxwxcb.cn/news/detail-709563.html
2. 原理分析
先查看它所對應(yīng)的文件
通過file xx
,發(fā)現(xiàn)顯示我的zookeeper壓縮包為rar(window系列的文件),格式跟linux不通用&#x文章來源地址http://www.zghlxwxcb.cn/news/detail-709563.html
到了這里,關(guān)于linux使用tar解壓出現(xiàn) gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not 的解決方法的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!