Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- GIT
- Spring
- tomcat
- SSL
- SQL
- Android
- 보조정렬
- SPC
- mybatis
- Sqoop
- Python
- vaadin
- hadoop
- mapreduce
- 공정능력
- react
- NPM
- JavaScript
- R
- xPlatform
- Express
- IntelliJ
- Eclipse
- Kotlin
- table
- window
- Java
- MSSQL
- es6
- plugin
Archives
- Today
- Total
DBILITY
linux java 설치 본문
반응형
jdk 1.8 64bit 설치
openjdk도 많이 쓰던데, java.oracle.com에서 다운로드합니다.
다운로드에서 링크주소를 복사해서 사용..
http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-x64.tar.gz
[root@big-master ~]# cd /usr/local/src/
[root@big-master src]# 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/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-x64.tar.gz"
--2018-04-17 20:48:45-- http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.56.28.195
Connecting to download.oracle.com (download.oracle.com)|23.56.28.195|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-x64.tar.gz [following]
--2018-04-17 20:48:45-- https://edelivery.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 184.25.23.111, 2600:1417:e:28e::2d3e, 2600:1417:e:28b::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|184.25.23.111|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-x64.tar.gz?AuthParam=1523965846_268ab8f2f08ca6ca7f6acf22ed8bf2c3 [following]
--2018-04-17 20:48:45-- http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-x64.tar.gz?AuthParam=1523965846_268ab8f2f08ca6ca7f6acf22ed8bf2c3
Connecting to download.oracle.com (download.oracle.com)|23.56.28.195|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 189815615 (181M) [application/x-gzip]
Saving to: ‘jdk-8u162-linux-x64.tar.gz’
100%[===========================================================================>] 189,815,615 10.4MB/s in 19s
2018-04-17 20:49:04 (9.55 MB/s) - ‘jdk-8u162-linux-x64.tar.gz’ saved [189815615/189815615]
[root@big-master src]# ls
jdk-8u162-linux-x64.tar.gz
[root@big-master src]# tar -zxpf jdk-8u162-linux-x64.tar.gz
[root@big-master src]# ll
total 185372
drwxr-xr-x. 8 10 143 4096 Dec 20 14:27 jdk1.8.0_162
-rw-r--r--. 1 root root 189815615 Dec 21 06:53 jdk-8u162-linux-x64.tar.gz
[root@big-master src]# cp -rf jdk1.8.0_162 /bigdata
[root@big-master src]# ln -s /bigdata/jdk1.8.0_162 /jdk
[root@big-master src]# vi /etc/profile
export JAVA_HOME=/jdk
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
[root@big-master src]# source /etc/profile
[root@big-master src]# java -version
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)
[root@big-master src]#
반응형
'os > linux' 카테고리의 다른 글
linux time sync ntp install ( 시간 동기화 ntp 설치 ) (0) | 2018.05.05 |
---|---|
centos 7 systemd 서비스 작성 (0) | 2018.04.20 |
linux swap file 추가하기 (0) | 2018.04.14 |
file content merge & replace (0) | 2018.04.12 |
vim replace (0) | 2018.04.11 |
Comments