2018-02-23 17:27:21 +08:00
|
|
|
# 安装 JDK
|
|
|
|
|
|
|
|
## linux 安装JDK通用脚本
|
|
|
|
|
|
|
|
使用方法:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
wget --no-check-certificate --no-cookies https://raw.githubusercontent.com/dunwu/linux/master/codes/deploy/tool/jdk/install-jdk8.sh
|
|
|
|
chmod -R 777 install-jdk8.sh
|
|
|
|
./install-jdk8.sh
|
|
|
|
```
|
|
|
|
|
2018-09-29 10:16:24 +08:00
|
|
|
脚本会下载解压 jdk8 到 `/opt/java` 路径下。
|
2018-02-23 17:27:21 +08:00
|
|
|
|
|
|
|
## Centos 安装JDK脚本
|
|
|
|
|
|
|
|
使用方法:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
wget --no-check-certificate --no-cookies https://raw.githubusercontent.com/dunwu/linux/master/codes/deploy/tool/jdk/install-jdk8-by-yum.sh
|
|
|
|
chmod -R 777 install-jdk8-by-yum.sh
|
|
|
|
./install-jdk8-by-yum.sh
|
|
|
|
```
|
|
|
|
脚本会下载解压 jdk8 到 `/usr/lib/jvm/java` 路径下。
|