tomcat启动卡主不动

为什么80%的码农都做不了架构师?>>>   hot3.png

01-Nov-2016 12:39:25.884 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/app/tomcat/temp
01-Nov-2016 12:39:25.884 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
01-Nov-2016 12:39:26.200 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-80"]
01-Nov-2016 12:39:26.240 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
01-Nov-2016 12:39:26.249 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
01-Nov-2016 12:39:26.261 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
01-Nov-2016 12:39:26.267 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1268 ms
01-Nov-2016 12:39:26.321 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
01-Nov-2016 12:39:26.322 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.6
01-Nov-2016 12:39:26.349 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /app/tomcat/webapps/manager

在这边一直卡主了

 

修改Java.security文件,在文件中找到securerandom.source这个设置项

# The entropy gathering device can also be specified with the System
# property "java.security.egd". For example:
#
#   % java -Djava.security.egd=file:/dev/random MainClass
#
# Specifying this System property will override the
# "securerandom.source" Security property.
#
# In addition, if "file:/dev/random" or "file:/dev/urandom" is
# specified, the "NativePRNG" implementation will be more preferred than
# SHA1PRNG in the Sun provider.
#
securerandom.source=file:/dev/random

将/dev/random 改成/dev/urandom

转载于:https://my.oschina.net/jywm/blog/779417

你可能感兴趣的:(tomcat启动卡主不动)