요즘은 자바를 wget로 받으려 하면 사용동의 안했다고 다운을 못받게 한다;;

서버에서 콘솔로 설치해야 하는데..

방법이 없나 검색해보니~


요런 방법이 있네 ㅋㅋㅋ

wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.rpm"


참고 주소 : http://ashhar24.wordpress.com/2014/05/22/install-oracle-java-jdk-version-8u5-on-fedora/



그래서 설치하니~

[root@hostname ~]# wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.rpm"

--2014-06-14 13:34:08--  http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.rpm

Resolving download.oracle.com... 173.223.227.43, 173.223.227.11

Connecting to download.oracle.com|173.223.227.43|:80... connected.

HTTP request sent, awaiting response... 302 Moved Temporarily

Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.rpm [following]

--2014-06-14 13:34:08--  https://edelivery.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.rpm

Resolving edelivery.oracle.com... 23.62.234.140

Connecting to edelivery.oracle.com|23.62.234.140|:443... connected.

HTTP request sent, awaiting response... 302 Moved Temporarily

Location: http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.rpm?AuthParam=1402720570_e99e42bf4eabfb9ecd8c43a678fb89be [following]

--2014-06-14 13:34:09--  http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.rpm?AuthParam=1402720570_e99e42bf4eabfb9ecd8c43a678fb89be

Reusing existing connection to download.oracle.com:80.

HTTP request sent, awaiting response... 200 OK

Length: 140376637 (134M) [application/x-redhat-package-manager]

Saving to: `jdk-8u5-linux-x64.rpm'


100%[===================================================================================================>] 140,376,637 5.52M/s   in 25s


2014-06-14 13:34:34 (5.39 MB/s) - `jdk-8u5-linux-x64.rpm' saved [140376637/140376637]


[root@hostname ~]# rpm -Uvh jdk-8u5-linux-x64.rpm

준비 중...               ########################################### [100%]

   1:jdk                    ########################################### [100%]

Unpacking JAR files...

rt.jar...

jsse.jar...

charsets.jar...

tools.jar...

localedata.jar...

jfxrt.jar...

[root@hostname ~]# java -version

java version "1.8.0_05"

Java(TM) SE Runtime Environment (build 1.8.0_05-b13)

Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

[root@hostname ~]#