在linux中安装tomcat后,启动之后一直卡在[localhost-startStop-1]

linux中tomcat启动不成功,卡在[localhost-startStop-1]处的解决方法

Linux提供随机数设备主要是/dev/random 和/dev/urandom两种,

这两种得区别是:urandom安全性没有random高,但random需要时间间隔生成随机数,jdk默认调用random。

找到问题就很好解决了,找到对应的配置文件去修改就好了

编辑/jre/lib/security/Java.security这个文件(在安装的java文件中查找),在文件中找到securerandom.source这个设置项,将其改为:

securerandom.source=file:/dev/./urandom

之后就能正常启动成功了!!!

看一下启动成功后的画面!!linux中tomcat启动不成功,卡在[localhost-startStop-1]处的解决方法

相关文章:

  • 2021-04-08
  • 2023-04-07
  • 2021-07-02
  • 2021-06-12
  • 2021-11-20
  • 2021-12-03
  • 2021-10-06
  • 2022-02-09
猜你喜欢
  • 2021-04-04
  • 2021-05-14
  • 2021-12-25
  • 2021-06-24
相关资源
相似解决方案