Could not contact localhost:8005. Tomcat may not be running.

在Linux上面关闭tomcat时,会出现找不到8005端口的错误

以上错误就是找不到8005端口,用命令确实查不到8005端口。

 解决办法:

vi /usr/java/jdk1.8.0_111/jre/lib/security/java.security    红色部分为jdk安装路径
将文件中的securerandom.source=file:/dev/random修改为securerandom.source=file:/dev/./urandom 两者区别就是红色部分
原文地址:https://www.cnblogs.com/du001011/p/14528774.html