美文网首页
linux解决tomcat启动慢

linux解决tomcat启动慢

作者: Dream笔 | 来源:发表于2018-05-14 12:35 被阅读0次

方法一

在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

相关文章

网友评论

      本文标题:linux解决tomcat启动慢

      本文链接:https://www.haomeiwen.com/subject/mhiddftx.html