window ftp上传zip文件,linux不能用unzip解压问题
2015-03-09 16:28
447 查看
http://blog.itpub.net/22608279/viewspace-660343/
file *.zip
在windows cmd命令下ftp ,put文件 到远程服务器上
ftp> put "F:\oracle 10.2 for linux edition(32bit)\10201_database_linux32.zip"
200 PORT command successful.
150 Opening ASCII mode data connection for 10201_database_linux32.zip.
226-WARNING! 2502357 bare linefeeds received in ASCII mode
File may not have transferred correctly.
226 Transfer complete.
ftp: 668734007 bytes sent in 52.52Seconds 12733.91Kbytes/sec.
传送成功。
在linux中解压文件如下
[oracle@localhost oracle]$ ls
10201_database_linux32.zip database product test.log
[oracle@localhost oracle]$ unzip 10201_database_linux32.zip
Archive: 10201_database_linux32.zip
warning [10201_database_linux32.zip]: -20730 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [10201_database_linux32.zip]: start of central directory not found;
zipfile corrupt.
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)
用file 检查文件
[oracle@localhost oracle]$ file 10201_database_linux32.zip
10201_database_linux32.zip: Zip archive data, at least v1.0 to extract
解决方法:
在问题中出现appropriate BINARY mode 原来是上传文件时没用这种模式上传,在windows 下命令如下
ftp> bin
200 Type set to I.
这样上传文件以二进制模式上传之后就成功解决不能unzip问题
file *.zip
在windows cmd命令下ftp ,put文件 到远程服务器上
ftp> put "F:\oracle 10.2 for linux edition(32bit)\10201_database_linux32.zip"
200 PORT command successful.
150 Opening ASCII mode data connection for 10201_database_linux32.zip.
226-WARNING! 2502357 bare linefeeds received in ASCII mode
File may not have transferred correctly.
226 Transfer complete.
ftp: 668734007 bytes sent in 52.52Seconds 12733.91Kbytes/sec.
传送成功。
在linux中解压文件如下
[oracle@localhost oracle]$ ls
10201_database_linux32.zip database product test.log
[oracle@localhost oracle]$ unzip 10201_database_linux32.zip
Archive: 10201_database_linux32.zip
warning [10201_database_linux32.zip]: -20730 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [10201_database_linux32.zip]: start of central directory not found;
zipfile corrupt.
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)
用file 检查文件
[oracle@localhost oracle]$ file 10201_database_linux32.zip
10201_database_linux32.zip: Zip archive data, at least v1.0 to extract
解决方法:
在问题中出现appropriate BINARY mode 原来是上传文件时没用这种模式上传,在windows 下命令如下
ftp> bin
200 Type set to I.
这样上传文件以二进制模式上传之后就成功解决不能unzip问题
相关文章推荐
- 通过java解决linux下解压来自window生成的zip文件的乱码问题
- Linux unzip不能解压大于2G的文件问题
- Linux下处理由window上传zip解压后文件(夹)名的乱码问题
- 【Linux/Ubuntu学习3】解决ubuntu解压windows生成的zip文件时乱码问题
- windows下ftp客户端上传东西到linux下的ftp server中文乱码的问题
- 开启LINUX防火墙后,FTP PASV不能正常登录问题
- 【转】利用ftpclient下载文件,解决用window.open打开ftp地址中有中文,不能下载的问题
- Linux下解压zip乱码问题的解决(unzip)
- Linux中ftp不能上传文件/目录的解决办法
- centos下安装的vsftpd服务,创建一个新的ftpuser账号,在window下连接后不能上传
- 使用Samba建立Window与Linux共享不能访问问题
- linux下使用ftp命令下载压缩文件,解压时出错的问题
- 使用edtftpnet上传文件到Serv-U出现乱码的问题,并且不能创建中文文件名或文件夹。
- 开启LINUX防火墙后,FTP PASV不能正常登录问题
- 【Linux/Ubuntu学习3】解决ubuntu解压windows生成的zip文件时乱码问题
- 解决linux不能使用ftp问题
- 开启LINUX防火墙后,FTP PASV不能正常登录问题
- Java压缩解压zip文件的中文文件名在Windows和Linux环境下乱码问题的解决方案
- Linux下FTP故障不能连接问题
- zip文件上传linux主机,解压后权限异常,用虚拟机解决文件权限问题