Download Oracle Java JRE & JDK using a script
http://www.oracle.com/technetwork/java/javase/downloads/index.html
으로 가서 해당 버전의 다운로드 받을 파일의 링크를 복사함..
아래 링크부분을 변경하여 다운로드 받음
wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" "http://download.oracle.com/otn-pub/java/jdk/6u38-b05/jre-6u38-linux-i586-rpm.bin"
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/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.rpm"
다운받은 파일의 명칭을 확인한뒤 파일명 변경
[root@rfid-mapo ~]# ls -lrt
total 20252
-rw-r--r--. 1 root root 20714744 Feb 1 05:15 jre-6u39-linux-x64-rpm.bin?AuthParam=1360286510_ea0f703fcf8afa4d8971 7d10facfda3c
-rw-r--r--. 1 root root 3190 Feb 8 09:28 install.log.syslog
-rw-r--r--. 1 root root 9095 Feb 8 09:29 install.log
-rw-------. 1 root root 1221 Feb 8 09:29 anaconda-ks.cfg
[root@rfid-mapo ~]# mv jre-6u39-linux-x64-rpm.bin\?AuthParam\=1360286510_ea0f703fcf8afa4d89717d10facfda3c jre-6u39 -linux-x64-rpm.bin
[root@rfid-mapo ~]# ls -lrt
--파일에 실행권한을 부여
[root@rfid-mapo ~]# chmod +x jre-6u39-linux-x64-rpm.bin
[root@rfid-mapo ~]# ls -lrt
total 20252
-rwxr-xr-x. 1 root root 20714744 Feb 1 05:15 jre-6u39-linux-x64-rpm.bin
-rw-r--r--. 1 root root 3190 Feb 8 09:28 install.log.syslog
-rw-r--r--. 1 root root 9095 Feb 8 09:29 install.log
-rw-------. 1 root root 1221 Feb 8 09:29 anaconda-ks.cfg
--해당파일을 실행하여 설치
[root@rfid-mapo ~]# ./jre-6u39-linux-x64-rpm.bin
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-6u39-linux-amd64.rpm
Preparing... ########################################### [100%]
1:jre ########################################### [100%]
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...
Done.
[root@rfid-mapo ~]#
'OS > Linux' 카테고리의 다른 글
설치된 package 확인 (0) | 2020.04.27 |
---|---|
linux_runlevel변경 (0) | 2020.04.27 |
CentOS port open / RHEL/CentOS 7 방화벽(firewalld) 설정 (0) | 2020.04.27 |
Install PostgreSQL on CentOS 6.3 [ 설치 , 백업 , 복구 ] (0) | 2020.04.27 |
Starting Tomcat as a Service on Linux (리눅스 부팅시 Tomcat 시작하기 ) (0) | 2020.04.27 |