关于linux发布tomcat启动慢:Creation of SecureRandom instance for session ID的解决方案

linux或者部分unix系统提供随机数设备是/dev/random 和/dev/urandom ,两个有区别,urandom安全性没有random高,但random需要时间间隔生成随机数。

可能在生成随机数的时候卡住了,导致tomcat启动不了/

解决办法:
打开$JAVA_HOME/jre/lib/security/java.security这个文件,找到下面的内容:
        securerandom.source=file:/dev/urandom
    替换成

        securerandom.source=file:/dev/./urandom
 

猜你喜欢

转载自blog.csdn.net/zzwforbid_404/article/details/83540449