文件路径 /usr/local/java/jre/lib/security/java.security
# The entropy gathering device can also be specified with the System # property "java.security.egd". For example: # # % java -Djava.security.egd=file:/dev/random MainClass # # Specifying this System property will override the # "securerandom.source" Security property. # # In addition, if "file:/dev/random" or "file:/dev/urandom" is # specified, the "NativePRNG" implementation will be more preferred than # SHA1PRNG in the Sun provider. # #securerandom.source=file:/dev/random securerandom.source=file:/dev/./urandom
注释 securerandom.source=file:/dev/random 添加一行 securerandom.source=file:/dev/./urandom