解决办法:
编辑 $JAVA_HOME/jre/lib/security/java.security 文件
找到 securerandom.source=file:/dev/random 这一行内容
改为:securerandom.source=file:/dev/urandom (亲测,问题解决。)
如果没有上面那行内容
-
或者将 securerandom.source=file:/dev/urandom
- 修改为 securerandom.source=file:/dev/./urandom