Linux tomcat8, JDK8 can start normally after being stuck for half a day

Today, when deploying the website on the server, start tomcat without error tail -f catalina.out log and catalina.sh run mode stuck at 22-Jul-2016 23:00:53.921 INFO [localhost-startStop-1] org.apache. catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/dev/apache-tomcat-8.0.36/webapps/manager Here I found a solution
later on a blog
to $JAVA_HOME/jre/lib/security/Java.security Inside, change the content of securerandom.source to file:/dev/./urandom to
provide random number devices for Linux or some unix systems. The devices are /dev/random and /dev/urandom, the two are different, urandom is not as secure as random High, but random requires time intervals to generate random numbers.
It may be stuck when generating random numbers, causing tomcat to fail to start. You can also add the parameter -Djava.security.egd=file:/dev/./urandom when
the server starts
from:
http://blog.csdn.net /hfmbook/article/details/52290067

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326198890&siteId=291194637