0
点赞
收藏
分享

微信扫一扫

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

无聊到学习 2022-07-27 阅读 87


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

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

在解压JDK.xxxx.tar.gz文件的时候报错,我注意看了一下 网上的大小跟我在centos下载的大小不对

说明了 包是损坏的


解决方法:

我自己比较懒就直接在本地下载好,然后在传到centos(虚拟机)

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

来到虚拟机肯定是解压

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

解压之后 我们就开始安装了 (目录是看你自己喜欢那个位置就放在那个目录)

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

1、把JDK文件夹拷贝到你喜欢的目录

  2、配置环境变量

  修改/etc/profile  加入以下内容

   export JAVA_HOME=/root/java-jdk/jdk-9.0.4 (这个是你放JDK目录的位置)

   export PATH=$JAVA_HOME/bin:$PATH

   export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar


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

保存退出:wq

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

使/etc/profile生效

source /etc/profile

查看当前版本:
java -version

javac


举报

相关推荐

tar、gzip、zip压缩命令

0 条评论