标签:mod otn UI ## wget time 配置环境 root ora
jdk官网下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
在官网上选择下载的版本:
红色部分为,绕过用户验证
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u152-b16/aa0333dd3019491ca4f6ddbe78cdb6d0/jdk-8u152-linux-x64.rpm
下载完毕后,可以直接使用rpm -ivh 进行安装使用。
[root@localhost ~]# ll total 165988 -rw-r--r-- 1 root root 169971490 Oct 16 15:18 jdk-8u144-linux-x64.rpm [root@localhost ~]# rpm -ivh jdk-8u144-linux-x64.rpm Preparing... ########################################### [100%] 1:jdk1.8.0_144 ########################################### [100%] Unpacking JAR files... tools.jar... plugin.jar... javaws.jar... deploy.jar... rt.jar... jsse.jar... charsets.jar... localedata.jar... [root@localhost ~]# java -version java version "1.8.0_144" Java(TM) SE Runtime Environment (build 1.8.0_144-b01) Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
红色部分为,绕过用户验证
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u152-b16/aa0333dd3019491ca4f6ddbe78cdb6d0/jdk-8u152-linux-x64.tar.gz
放到相应的目录
[root@localhost data]# ll total 185340 -rw-r--r--. 1 root root 189784266 Oct 10 06:05 jdk-8u152-linux-x64.tar.gz [root@localhost data]# tar xf jdk-8u152-linux-x64.tar.gz [root@localhost data]# ll total 185344 drwxr-xr-x. 8 uucp 143 4096 Sep 14 17:27 jdk1.8.0_152 -rw-r--r--. 1 root root 189784266 Oct 10 06:05 jdk-8u152-linux-x64.tar.gz [root@localhost data]# mv jdk1.8.0_152/ jdk [root@localhost data]# ll total 185344 drwxr-xr-x. 8 uucp 143 4096 Sep 14 17:27 jdk -rw-r--r--. 1 root root 189784266 Oct 10 06:05 jdk-8u152-linux-x64.tar.gz
[root@localhost data]# vim /etc/profile.d/jdk.sh #jdk export JAVA_HOME=/data/jdk export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH export CLASSPATH=.$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar export TOMCAT_HOME=/data/8080 [root@localhost data]# source /etc/profile.d/jdk.sh [root@localhost data]# java -version java version "1.8.0_60" Java(TM) SE Runtime Environment (build 1.8.0_60-b27) Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
标签:mod otn UI ## wget time 配置环境 root ora
原文地址:http://www.cnblogs.com/syaving/p/7877836.html