# JDK
## 下载
官网地址：[https://www.oracle.com](https://www.oracle.com)

下载页面：[https://www.oracle.com/technetwork/java/javase/downloads/index.html](https://www.oracle.com/technetwork/java/javase/downloads/index.html)

下载地址：[https://download.oracle.com/otn/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.rpm](https://download.oracle.com/otn/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.rpm)

使用 wget 下载 JDK

```
[root@localhost ~] wget https://download.oracle.com/otn/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.rpm
```

## 安装

使用 rpm 命令安装 JDK-8u181 。

```
[root@localhost ~] rpm -ivh jdk-8u181-linux-x64.rpm
```

### 解决 Tomcat 启动慢问题

编辑文件“/usr/java/jdk1.8.0_181-amd64/jre/lib/security/java.security”。
将“securerandom.source=file:/dev/random”改为“securerandom.source=file:/dev/urandom”。
