将$JAVA_HOME/jre/lib/security/Java.security内,将securerandom.source的内容改为file:/dev/./urandom即可

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

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

在服务器启动时也可以加上参数 -Djava.security.egd=file:/dev/./urandom

相关文章:

  • 2022-12-23
  • 2022-01-21
  • 2021-11-20
  • 2022-12-23
  • 2021-12-08
  • 2021-07-18
  • 2022-12-23
猜你喜欢
  • 2021-06-03
  • 2022-12-23
  • 2021-09-03
  • 2021-11-01
  • 2022-12-23
  • 2021-08-25
  • 2022-02-23
相关资源
相似解决方案