主要原因是生成随机数的时候卡住了,导致tomcat启动不了。

解决方案:

vim $JAVA_HOME/jre/lib/security/java.security
securerandom.source=file:/dev/random
改为
securerandom.source=file:/dev/urandom

测试环境:

[root@docker-test logs]# cat /etc/*-release
CentOS Linux release 7.6.1810 (Core) 
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.6.1810 (Core) 
CentOS Linux release 7.6.1810 (Core) 

tomcat版本:

apache-tomcat-8.5.41

 

相关文章:

  • 2021-11-28
  • 2021-09-15
  • 2021-06-21
  • 2021-11-07
  • 2021-08-03
  • 2022-12-23
  • 2021-12-06
猜你喜欢
  • 2021-09-06
  • 2021-09-18
  • 2021-12-03
  • 2022-12-23
  • 2022-02-17
  • 2021-11-08
  • 2022-01-29
相关资源
相似解决方案