Tomcat报错SEVERE: Could not contact [localhost:[8005]]. Tomcat may not be running.

## 问题
Tomcat启动停留在deploy第一个项目关闭时报错SEVERE: Could not contact [localhost:[8005]]. Tomcat may not be running.
## 环境
JDK1.7
Tomcat1.7
Mysql5.7
![](https://img2020.cnblogs.com/blog/1208477/202008/1208477-20200826111047361-373908011.png)

## 解决方案
1. 找到jdk目录’jdk1.7.0_79/jre/lib/security/”,在该文件夹下打开编辑java.security文件(vi java.security)
2. 将 “securerandom.source=file:/dev/random”
修改为 “securerandom.source=file:/dev/./urandom “
3. 重启tomcat就可以了

参考:
https://blog.csdn.net/Ferdinand_Du/article/details/89396975

点赞

Leave a Reply

Your email address will not be published. Required fields are marked *