标签:run etc return turn secure jdk1.8 serve tar -xvf 执行
报错#tar -xvf jdk-8u131-linux-x64.tar.gz,执行命令后报错如下:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
在wget后添加一下
--no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie"
命令如下:
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" “你需要下载的东西”
[root@zuitu script]# tail -n 5 /etc/profile #环境变量设置
#Java Env
export JAVA_HOME=/server/source/jdk1.8.0_191
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
[root@zuitu script]# java -version
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
[root@zuitu script]#
解决解压JDK报错:tar: Error is not recoverable
标签:run etc return turn secure jdk1.8 serve tar -xvf 执行
原文地址:http://blog.51cto.com/leoheng/2342255