在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,搞定。

相关文章:

  • 2022-12-23
  • 2021-12-28
  • 2021-06-15
  • 2021-05-24
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2021-07-01
猜你喜欢
  • 2021-12-04
  • 2022-12-23
  • 2021-07-21
  • 2021-05-17
  • 2022-01-10
  • 2021-07-13
相关资源
相似解决方案