linux tar 解压出错

今天用tar -xzvf php-7.2.3.tar.gz 解压php的tar包时报错

[root@VM_72_37_centos ~]# tar -xzvf php-7.2.3.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

解压时试试使用 tar -xvf 参数可能有奇效。

还是不行可能是文件错误,仔细检查文件。

 

原文地址:https://www.cnblogs.com/deverz/p/8528258.html