【Centos7】gzip: stdin has more than one entry–rest ignoredChild报错解决方案
大家好 我是寸铁👊
总结了一篇【Centos7】gzip: stdin has more than one entry–rest ignoredChild报错解决方案✨
喜欢的小伙伴可以点点关注 💝
前言
今天在Centos7解压包的时候,把
Windows
的压缩包用tar
解压缩报错了。后缀为tar.gz
解压缩不是用的tar
? 怎么会报错?下面跟寸铁来看看这个问题吧!
具体如下:
@localhost example$sudo tar -zxvf example.tar.gz
gzip: stdin has more than one entry--rest ignoredChild
returned status 2Error is not recoverable:exiting now
解决方案
本质上,在
Windows
压缩一个包,修改压缩后缀为tar.gz
后,传到Centos
中,其实还是zip
的格式,知道这个问题,就可以快速解决了,解决如下:
用unzip
来解压:
sudo unzip xx
问题成功解决!
查看一下是否解压成功,确实是解压成功了!
看到这里的小伙伴,恭喜你又掌握了一个技能👊
希望大家能取得胜利,坚持就是胜利💪
我是寸铁!我们下期再见💕
往期好文💕
保姆级教程
【保姆级教程】Windows11下go-zero的etcd安装与初步使用
【保姆级教程】Windows11安装go-zero代码生成工具goctl、protoc、go-zero
【Go-Zero】手把手带你在goland中创建api文件并设置高亮
报错解决
【Go-Zero】Error: user.api 27:9 syntax error: expected ‘:‘ | ‘IDENT‘ | ‘INT‘, got ‘(‘ 报错解决方案及api路由注意事项
【Go-Zero】Error: only one service expected goctl一键转换生成rpc服务错误解决方案
【Go-Zero】【error】 failed to initialize database, got error Error 1045 (28000):报错解决方案
【Go-Zero】Error 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)报错解决方案
【Go-Zero】type mismatch for field “Auth.AccessSecret“, expect “string“, actual “number“报错解决方案
【Go-Zero】Error: user.api 30:2 syntax error: expected ‘)‘ | ‘KEY‘, got ‘IDENT‘报错解决方案
【Go-Zero】Windows启动rpc服务报错panic:context deadline exceeded解决方案