红联Linux门户
Linux帮助

Tomcat启动时卡在“INFO: Deploying web application directory

发布时间:2015-12-04 15:59:00来源:linux网站作者:CodingYang

今天在linux上的tomcat部署一个网站时,在刚启动tomcat的时候提示启动成功,然后也能访问成功.


可是第二次启动时虽然没有报错,但无法访问tomcat,查看了catalina.out日志,发现tomcat卡在了INFO: Deploying web application directory ......

后来看了一篇博文解决了问题.在 $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


linux下制作绿色版的tomcat:http://www.linuxdiyf.com/linux/15885.html

Linux下在已经运行的Tomcat环境下如何再部署新的Tomcat:http://www.linuxdiyf.com/linux/15331.html

Tomcat 8在CentOS 7的守护进程设置:http://www.linuxdiyf.com/linux/15276.html

CentOS下Tomcat的基础安装:http://www.linuxdiyf.com/linux/13875.html

CentOS下配置多个Tomcat同时运行:http://www.linuxdiyf.com/linux/11537.html