打开$JAVA_HOME/jre/lib/security/java.security这个文件 vim 下查找‘file:’(引号里的内容),修改后如下 securerandom.source=file:/dev/urandom