方法一
在tomcat的bin下面的
catalina.sh添加一行
-Djava.security.egd=file:/dev/./urandom
方法二
打开
$JAVA_PATH/jre/lib/security/java.security这个文件,找到下面的内容:
securerandom.source=file:/dev/urandom
换成
securerandom.source=file:/dev/./urandom
在tomcat的bin下面的
catalina.sh添加一行
-Djava.security.egd=file:/dev/./urandom
打开
$JAVA_PATH/jre/lib/security/java.security这个文件,找到下面的内容:
securerandom.source=file:/dev/urandom
换成
securerandom.source=file:/dev/./urandom