啓動Tomcat時卡住 Deploying web application directoryhtml
環境java
找到 java.security,把web
securerandom.source=file:/dev/random
改成apache
securerandom.source=file:/dev/./urandom
java.security 文件位置tomcat
好多博客介紹位置在jdk1.x.x_xx/jre/lib/security/Java.security,然而並無找到。因而find命令查找以後,結果以下:app
/usr/local/java/jdk-10.0.2/conf/security/java.security /usr/local/java/jdk1.8.0_172/jre/lib/security/java.security
當前用的是 jdk-10.0.2,在**$JAVA_HOME/conf/security/java.security**成功找到。dom
參考文檔:刺風’Blogcode