Tomcat执行shutdown时报错:java.net.ConnectException: Connection refused (Connection refused)解决办法

在Linux系统上部署tomcat时,部署完毕启动tomcat后用浏览器访问,发现没有反应,执行shutdown.sh命令时报如下错误:java.net.ConnectException: Connection refused (Connection refused)
Tomcat执行shutdown时报错:java.net.ConnectException: Connection refused (Connection refused)解决办法
解决办法:
找到**$JAVA_HOME/jre/lib/security**下的java.security文件(此为该文件jdk8的路径,其他版本jdk该文件路径略有差异),将
securerandom.source=file:/dev/random
修改为
securerandom.source=file:/dev/urandom
重启tomcat,搞定。