Apache Tomcat7.0安装及配置教程、、
Apache Tomcat7.0官方网站链接:http://tomcat.apache.org/
apache-tomcat-7.0.73-windows-x64
先解压下载的压缩包、然后在bin目录下找到startup.bat文件、并用鼠标双击此文件
一月 12, 2017 1:47:26 下午 org.apache.catalina.core.AprLifecycleListener init
警告: The APR based Apache Tomcat Native library failed to load. The error reported was [E:\C-E\apache-tomcat-7\bin\tcnative-1.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform]
java.lang.UnsatisfiedLinkError: E:\C-E\apache-tomcat-7\bin\tcnative-1.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at org.apache.tomcat.jni.Library.<init>(Library.java:42)
at org.apache.tomcat.jni.Library.initialize(Library.java:178)
at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:200)
at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:108)
at org.apache.catalina.connector.Connector.setProtocol(Connector.java:592)
at org.apache.catalina.connector.Connector.<init>(Connector.java:66)
at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1303)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2786)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1576)
at org.apache.catalina.startup.Catalina.load(Catalina.java:616)
at org.apache.catalina.startup.Catalina.load(Catalina.java:667)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/7.0.73
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Nov 7 2016 21:27:23 UTC
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 7.0.73.0
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 8.1
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 6.3
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: x86
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: D:\Java\jdk1.7.0_80\jre
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.7.0_80-b15
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: E:\C-E\apache-tomcat-7
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: E:\C-E\apache-tomcat-7
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.config.file=E:\C-E\apache-tomcat-7\conf\logging.properties
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=E:\C-E\apache-tomcat-7\endorsed
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=E:\C-E\apache-tomcat-7
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=E:\C-E\apache-tomcat-7
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.io.tmpdir=E:\C-E\apache-tomcat-7\temp
一月 12, 2017 1:47:27 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
一月 12, 2017 1:47:27 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1291 ms
一月 12, 2017 1:47:27 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
一月 12, 2017 1:47:27 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.73
一月 12, 2017 1:47:27 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\C-E\apache-tomcat-7\webapps\docs
一月 12, 2017 1:47:28 下午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [303] milliseconds.
一月 12, 2017 1:47:28 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\C-E\apache-tomcat-7\webapps\docs has finished in 1,029 ms
一月 12, 2017 1:47:28 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\C-E\apache-tomcat-7\webapps\examples
一月 12, 2017 1:47:29 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\C-E\apache-tomcat-7\webapps\examples has finished in 704 ms
一月 12, 2017 1:47:29 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\C-E\apache-tomcat-7\webapps\host-manager
一月 12, 2017 1:47:29 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\C-E\apache-tomcat-7\webapps\host-manager has finished in 178 ms
一月 12, 2017 1:47:29 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\C-E\apache-tomcat-7\webapps\manager
一月 12, 2017 1:47:29 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\C-E\apache-tomcat-7\webapps\manager has finished in 245 ms
一月 12, 2017 1:47:29 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\C-E\apache-tomcat-7\webapps\ROOT
一月 12, 2017 1:47:29 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\C-E\apache-tomcat-7\webapps\ROOT has finished in 138 ms
一月 12, 2017 1:47:29 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
一月 12, 2017 1:47:29 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
一月 12, 2017 1:47:29 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 2460 ms
然后在浏览器中输入 http://localhost:8080 回车后,显示如下界面:此时就说明Tomcat服务启动正常了、、
apache-tomcat-7.0.73-windows-x86
先解压下载的压缩包、然后在bin目录下找到startup.bat文件、并用鼠标双击此文件
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/7.0.73
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Nov 7 2016 21:27:23 UTC
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 7.0.73.0
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 8.1
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 6.3
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: x86
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: D:\Java\jdk1.7.0_80\jre
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.7.0_80-b15
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: E:\C-E\apache-tomcat-7.0.73
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: E:\C-E\apache-tomcat-7.0.73
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.config.file=E:\C-E\apache-tomcat-7.0.73\conf\logging.properties
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=E:\C-E\apache-tomcat-7.0.73\endorsed
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=E:\C-E\apache-tomcat-7.0.73
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=E:\C-E\apache-tomcat-7.0.73
一月 12, 2017 1:55:14 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.io.tmpdir=E:\C-E\apache-tomcat-7.0.73\temp
一月 12, 2017 1:55:14 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: Loaded APR based Apache Tomcat Native library 1.2.10 using APR version 1.5.2.
一月 12, 2017 1:55:14 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
一月 12, 2017 1:55:15 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.2j 26 Sep 2016)
一月 12, 2017 1:55:16 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-apr-8080"]
一月 12, 2017 1:55:16 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-apr-8009"]
一月 12, 2017 1:55:16 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 2269 ms
一月 12, 2017 1:55:16 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
一月 12, 2017 1:55:16 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.73
一月 12, 2017 1:55:16 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\C-E\apache-tomcat-7.0.73\webapps\docs
一月 12, 2017 1:55:17 下午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [309] milliseconds.
一月 12, 2017 1:55:17 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\C-E\apache-tomcat-7.0.73\webapps\docs has finished in 1,003 ms
一月 12, 2017 1:55:17 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\C-E\apache-tomcat-7.0.73\webapps\examples
一月 12, 2017 1:55:17 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\C-E\apache-tomcat-7.0.73\webapps\examples has finished in 643 ms
一月 12, 2017 1:55:17 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\C-E\apache-tomcat-7.0.73\webapps\host-manager
一月 12, 2017 1:55:18 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\C-E\apache-tomcat-7.0.73\webapps\host-manager has finished in 173 ms
一月 12, 2017 1:55:18 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\C-E\apache-tomcat-7.0.73\webapps\manager
一月 12, 2017 1:55:18 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\C-E\apache-tomcat-7.0.73\webapps\manager has finished in 175 ms
一月 12, 2017 1:55:18 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\C-E\apache-tomcat-7.0.73\webapps\ROOT
一月 12, 2017 1:55:18 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\C-E\apache-tomcat-7.0.73\webapps\ROOT has finished in 209 ms
一月 12, 2017 1:55:18 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-apr-8080"]
一月 12, 2017 1:55:18 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-apr-8009"]
一月 12, 2017 1:55:18 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 2382 ms
然后在浏览器中输入 http://localhost:8080 回车后,显示如下界面:此时就说明Tomcat服务启动正常了、、