AIX 7.1 jar unzip解压报错问题解决

网友投稿 1159 2022-09-21

AIX 7.1 jar unzip解压报错问题解决

AIX 7.1  jar unzip解压报错问题解决

刚开始使用jar -xvf 进行解压也报错,怀疑jar解压命令有问题。便安装了zip相关包再进行解压还是报错。

jar 解压报错jar -xvf aix.ppc64_11gR2_database_1of2.zip

inflated: database/stage/Components/oracle.sysman.console.db/11.2.0.1.0/1/DataFiles/filegroup4.jarjava.io.EOFException: Unexpected end of ZLIB input streamat java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:241)at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:159)at java.util.zip.ZipInputStream.read(ZipInputStream.java:166)at sun.tools.jar.Main.extractFile(Main.java:753)at sun.tools.jar.Main.extract(Main.java:716)at sun.tools.jar.Main.run(Main.java:226)at sun.tools.jar.Main.main(Main.java:942)

unzip 解压报错unzip aix.ppc64_11gR2_database_1of2.zip -d oracle/

Archive: aix.ppc64_11gR2_database_1of2.zipEnd-of-central-directory signature not found. Either this file is nota zipfile, or it constitutes one disk of a multi-part archive. In thelatter case the central directory and zipfile comment will be found onthe last disk(s) of this archive.unzip: cannot find zipfile directory in one of aix.ppc64_11gR2_database_1of2.zip oraix.ppc64_11gR2_database_1of2.zip.zip, and cannot find aix.ppc64_11gR2_database_1of2.zip.ZIP, period.

通过网上查询相关报错信息,有网友说是上传没有在二进制模式下,也有说上传过程中包有丢失md5值不一致,其中有一条说的系统有限制导致ftp上传不完整。

经检查FTP 上传时提示有限制报错,如下:C:\Users\Forrest>ftp 192.168.1.248连接到 192.168.1.248。220 localhost FTP server (Version 4.2 Sat Aug 7 19:39:41 CDT 2010) ready.用户(192.168.1.248:(none)): root331 Password required for root.密码:230-Last login: Wed Dec 31 22:52:13 CST 1969 on /dev/pts/0 from 192.168.1.118230 User root logged in.ftp> bin200 Type set to I.ftp>ftp> put D:\迅雷-\aix.ppc64_11gR2_database_1of2.zip200 PORT command successful.150 Opening data connection for aix.ppc64_11gR2_database_1of2.zip.452 Error writing file: A file cannot be larger than the value set by ulimit.ftp: 发送 1073741824 字节,用时 251.31秒 4272.58千字节/秒。ftp>

查看AIX当前的size数值,该数值表示用户创建的文件大小限制。此定义值(512字节为单位)为该用户可以生成的最大文件的大小。

ulimit -f2097151

cat /etc/security/limits

default:fsize = 2097151core = 2097151cpu = -1data = 262144rss = 65536stack = 65536nofiles = 2000

此处输出后段省略

将其fsize更改为-1,使该参数无大小限制。

为使/etc/security/limits文件的更改生效,用户必须注销当前登录会话并重新登录。

重新上传再解压即正常没有报错

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:爬取斗鱼LOL主播人气数据,并显示排行榜 [网络爬虫] [应用案例][请求头][模块(斗鱼主播数量)
下一篇:hpvm分配资源创建虚机
相关文章

 发表评论

暂时没有评论,来抢沙发吧~