之前记得上传的时候也碰到过这样的问题,上传的文件解压时提示不能解压,报如下错误,我在windows上尝试使用其它的压缩方式来打包成zip文件,但都不行。错误如下:End-of-central-directory signature not found...本文地址:http://www.04007.cn/article/780.html,未经许可,不得转载.
[root@04007 gopath]rz [root@04007 gopath]# unzip company.zip Archive: company.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of company.zip or company.zip.zip, and cannot find company.zip.ZIP, period本文地址:http://www.04007.cn/article/780.html,未经许可,不得转载.
rz上传的时候可能会碰到两种问题:本文地址:http://www.04007.cn/article/780.html,未经许可,不得转载.
一是在上传的过程乱码中断,甚至断开服务器连接。在报这个错之前我就碰到有些压缩文件会中断上传,这可能是因为上传的文件流中包含某新特殊控制字符,造成rz提前结束退出。可以使用rz的参数-be
-b, --binary binary transfer用二进制的方式上传,
-e, --escape Escape control characters (Z)强制escape所有控制字符本文地址:http://www.04007.cn/article/780.html,未经许可,不得转载.
二是上传的文件大小不对,无法解压。我上面的文件都7M大小,但上传后只有几百KB,这是因为如果使用rz -be命令来进行上传,在弹出的文件选择窗口中要去掉勾选:upload files as ASCII 选项,如下图:本文地址:http://www.04007.cn/article/780.html,未经许可,不得转载.
本文地址:http://www.04007.cn/article/780.html,未经许可,不得转载.
本文地址:http://www.04007.cn/article/780.html 未经许可,不得转载. 手机访问本页请扫描右下方二维码.
![]() |
![]() |
手机扫码直接打开本页面 |