启动安装在阿里云ECS服务器的CentOS下的tomcat,会发现启动时间很长,解决办法:
- 找到自己jdk的安装目录
- 使用
vi jre/lib/security/java.security
命令,找到securerandom.source=file:/dev/random
,将其更改为:
securerandom.source=file:/dev/./random
重新启动tomcat,会发现启动速度很快!!!
启动安装在阿里云ECS服务器的CentOS下的tomcat,会发现启动时间很长,解决办法:
vi jre/lib/security/java.security
命令,找到securerandom.source=file:/dev/random
,将其更改为:securerandom.source=file:/dev/./random