1.查找JDK的安装目录
ls -lrt /usr/bin/java
接着继续查/etc/alternatives/java
2.找到JDK中的java.security进行修改
Open the $JAVA_HOME/jre/lib/security/java.security file in a text editor.
永久:oracle 说修改 $JAVA_HOME/jre/lib/security/java.security 文件,替换securerandom.source=file:/dev/random 为 securerandom.source=file:/dev/urandom。对所有使用JVM的应用生效。(这个永久的方法,这里面有个问题,就是设置时候实际应该设置为securerandom.source=file:/dev/./urandom,否则不生效)