1

我有tomcat6.0.37并且我试图通过运行来启动它catalina.sh,它只是挂在那里超过 30 分钟。我也localhost:8080/myapp拿不到。

有谁知道发生了什么?

$ ./catalina.sh run
Using CATALINA_BASE:   /home/lib/apache-tomcat-6.0.37
Using CATALINA_HOME:   /home/lib/apache-tomcat-6.0.37
Using CATALINA_TMPDIR: /home/lib/apache-tomcat-6.0.37/temp
Using JRE_HOME:        /usr/lib/jvm/java-7-openjdk-amd64
Using CLASSPATH:       /home/lib/apache-tomcat-6.0.37/bin/bootstrap.jar
Jul 25, 2013 10:49:47 AM org.apache.catalina.core.AprLifecycleListener init
INFO: An older version 1.1.24 of the APR based Apache Tomcat Native library is installed, while Tomcat recommends version greater than 1.1.27
Jul 25, 2013 10:49:47 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4.6.
Jul 25, 2013 10:49:47 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Jul 25, 2013 10:49:47 AM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized with version OpenSSL 1.0.1c 10 May 2012
Jul 25, 2013 10:49:47 AM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 25, 2013 10:49:47 AM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Jul 25, 2013 10:49:47 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 331 ms
Jul 25, 2013 10:49:47 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 25, 2013 10:49:47 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.37
Jul 25, 2013 10:49:47 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Jul 25, 2013 10:49:47 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Jul 25, 2013 10:49:47 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Jul 25, 2013 10:49:47 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Jul 25, 2013 10:49:48 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Jul 25, 2013 10:49:48 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 25, 2013 10:49:48 AM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Jul 25, 2013 10:49:48 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 447 ms
4

2 回答 2

1

您是否曾尝试通过修改/设置 JAVA_OPS 来设置不同的随机数生成器。

JAVA_OPTS=-Djava.security.egd=file:/dev/./urandom

原来的有一些问题,导致Tomcat等待....

于 2014-12-08T09:15:08.140 回答
0

您的操作系统使用 8080,因此请将其更改为任何其他端口,它将得到解决

于 2013-10-22T11:36:45.997 回答