linux下启动tomcat时卡在Deploying web application directory

找到jdk1.x.x_xx/jre/lib/security/Java.security文件,在文件中找到securerandom.source这个设置项,将其改为:

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

找到该设置项之后发现securerandom.source=file:/dev/urandom  中间少了/./  改为securerandom.source=file:/dev/./urandom

再重新启动tomcat  正常!

原文地址:https://www.cnblogs.com/wanfeng/p/9522272.html