我正在尝试在 Ubuntu 服务器中设置 Tomcat 应用程序服务器。当我尝试启动 tomcat 服务器时,它会在部署阶段挂起。如果我尝试http://本地主机:8080,它需要无限长的时间才能加载,但什么都没有发生。webapps 目录中没有 .war,我只是在测试 tomcat 安装。
Ubuntu 版本:
Distributor ID: Ubuntu
Description: Ubuntu 14.10
Release: 14.10
Codename: utopic
Java 版本:
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) Client VM (build 24.79-b02, mixed mode)
Tomcat 版本:
Server version: Apache Tomcat/7.0.61
Server built: Mar 27 2015 12:03:56 UTC
Server number: 7.0.61.0
OS Name: Linux
OS Version: 3.16.0-28-generic
Architecture: i386
JVM Version: 1.7.0_79-b15
JVM Vendor: Oracle Corporation
当我尝试启动 Tomcat 时的输出 -
:~$ /opt/tomcat7/bin/catalina.sh run
Using CATALINA_BASE: /opt/tomcat7
Using CATALINA_HOME: /opt/tomcat7
Using CATALINA_TMPDIR: /opt/tomcat7/temp
Using JRE_HOME: /opt/java7/jre
Using CLASSPATH: /opt/tomcat7/bin/bootstrap.jar:/opt/tomcat7/bin/tomcat-juli.jar
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.61
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Mar 27 2015 12:03:56 UTC
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.61.0
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Linux
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 3.16.0-28-generic
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: i386
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /opt/java7/jre
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.7.0_79-b15
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /opt/tomcat7
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /opt/tomcat7
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.config.file=/opt/tomcat7/conf/logging.properties
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=/opt/tomcat7/endorsed
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/opt/tomcat7
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/opt/tomcat7
May 14, 2015 9:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.io.tmpdir=/opt/tomcat7/temp
May 14, 2015 9:14:13 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: 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/i386:/lib:/usr/lib
May 14, 2015 9:14:13 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
May 14, 2015 9:14:13 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
May 14, 2015 9:14:13 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1159 ms
May 14, 2015 9:14:13 PM org.apache.catalina.core.StandardService startInterna
INFO: Starting service Catalina
May 14, 2015 9:14:13 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.61
May 14, 2015 9:14:13 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/tomcat7/webapps/ROOT