您的当前位置:首页正文

Tomcat8安装及配置教程

2021-04-06 来源:步旅网
Tomcat8安装及配置教程

Apache Tomcat8.0安装及配置教程、、、

Apache Tomcat8.0 官⽅⽹站链接:

apache-tomcat-8.0.39-windows-x64

先解压下载的压缩包、然后在bin⽬录下找到startup.bat⽂件、并⽤⿏标双击此⽂件

12-Jan-2017 13:59:44.284 警告 [main] 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-8.0.39\\bin\cnative-1.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform]

java.lang.UnsatisfiedLinkError: E:\\C-E\\apache-tomcat-8.0.39\\bin\cnative-1.dll: Can't load AMD 64-bit .dll on a IA 32-bit platformat 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.(Library.java:42)at org.apache.tomcat.jni.Library.initialize(Library.java:178)

at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:197)

at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:106)at org.apache.catalina.connector.Connector.setProtocol(Connector.java:564)at org.apache.catalina.connector.Connector.(Connector.java:66)

at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1180)

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:1448)at org.apache.catalina.startup.Catalina.load(Catalina.java:552)at org.apache.catalina.startup.Catalina.load(Catalina.java:603)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:310)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)

12-Jan-2017 13:59:44.512 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.3912-Jan-2017 13:59:44.513 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Nov 9 2016 08:48:39 UTC12-Jan-2017 13:59:44.514 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.39.012-Jan-2017 13:59:44.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 8.112-Jan-2017 13:59:44.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 6.312-Jan-2017 13:59:44.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: x86

12-Jan-2017 13:59:44.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: D:\\Java\\jdk1.7.0_80\\jre12-Jan-2017 13:59:44.516 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.7.0_80-b15

12-Jan-2017 13:59:44.516 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation

12-Jan-2017 13:59:44.516 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: E:\\C-E\\apache-tomcat-8.0.3912-Jan-2017 13:59:44.517 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: E:\\C-E\\apache-tomcat-8.0.39

12-Jan-2017 13:59:44.517 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=204812-Jan-2017 13:59:44.518 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources

12-Jan-2017 13:59:44.518 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=E:\\C-E\\apache-tomcat-8.0.39\\conf\\logging.properties

12-Jan-2017 13:59:44.518 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

12-Jan-2017 13:59:44.519 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=E:\\C-E\\apache-tomcat-8.0.39\\endorsed

12-Jan-2017 13:59:44.519 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=E:\\C-E\\apache-tomcat-8.0.3912-Jan-2017 13:59:44.519 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=E:\\C-E\\apache-tomcat-8.0.39

12-Jan-2017 13:59:44.519 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=E:\\C-E\\apache-tomcat-8.0.39\emp12-Jan-2017 13:59:44.808 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [\"http-nio-8080\"]

12-Jan-2017 13:59:44.870 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read12-Jan-2017 13:59:44.876 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [\"ajp-nio-8009\"]

12-Jan-2017 13:59:44.882 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read12-Jan-2017 13:59:44.883 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1183 ms12-Jan-2017 13:59:44.950 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina

12-Jan-2017 13:59:44.951 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.39

12-Jan-2017 13:59:44.990 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\\C-E\\apache-tomcat-8.0.39\\webapps\\docs

12-Jan-2017 13:59:46.057 信息 [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for sessionID generation using [SHA1PRNG] took [287] milliseconds.

12-Jan-2017 13:59:46.112 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\\C-E\\apache-tomcat-8.0.39\\webapps\\docs has finished in 1,121 ms

12-Jan-2017 13:59:46.113 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\\C-E\\apache-tomcat-8.0.39\\webapps\\examples

12-Jan-2017 13:59:46.897 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\\C-E\\apache-tomcat-8.0.39\\webapps\\examples has finished in 784 ms

12-Jan-2017 13:59:46.897 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\\C-E\\apache-tomcat-8.0.39\\webapps\\host-manager

12-Jan-2017 13:59:46.989 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\\C-E\\apache-tomcat-8.0.39\\webapps\\host-manager has finished in 92 ms

12-Jan-2017 13:59:46.990 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\\C-E\\apache-tomcat-8.0.39\\webapps\\manager

12-Jan-2017 13:59:47.073 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\\C-E\\apache-tomcat-8.0.39\\webapps\\manager has finished in 84 ms

12-Jan-2017 13:59:47.074 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\\C-E\\apache-tomcat-8.0.39\\webapps\\ROOT

12-Jan-2017 13:59:47.132 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\\C-E\\apache-tomcat-8.0.39\\webapps\\ROOT has finished in 58 ms

12-Jan-2017 13:59:47.139 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [\"http-nio-8080\"]12-Jan-2017 13:59:47.167 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [\"ajp-nio-8009\"]12-Jan-2017 13:59:47.175 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 2289 ms

然后在浏览器中输⼊ http://localhost:8080 回车后,显⽰如下界⾯:此时就说明Tomcat服务启动正常了、、

apache-tomcat-8.0.39-windows-x86

先解压下载的压缩包、然后在bin⽬录下找到startup.bat⽂件、并⽤⿏标双击此⽂件

12-Jan-2017 13:30:55.840 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.3912-Jan-2017 13:30:55.848 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Nov 9 2016 08:48:39 UTC12-Jan-2017 13:30:55.849 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.39.012-Jan-2017 13:30:55.849 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 8.112-Jan-2017 13:30:55.850 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 6.3

12-Jan-2017 13:30:55.850 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: x86

12-Jan-2017 13:30:55.850 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: D:\\Java\\jdk1.7.0_80\\jre12-Jan-2017 13:30:55.850 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.7.0_80-b15

12-Jan-2017 13:30:55.851 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation

12-Jan-2017 13:30:55.851 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: E:\\C-E\\apache-tomcat-812-Jan-2017 13:30:55.851 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: E:\\C-E\\apache-tomcat-8

12-Jan-2017 13:30:55.852 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=204812-Jan-2017 13:30:55.853 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources

12-Jan-2017 13:30:55.853 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=E:\\C-E\\apache-tomcat-8\\conf\\logging.properties

12-Jan-2017 13:30:55.853 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

12-Jan-2017 13:30:55.853 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=E:\\C-E\\apache-tomcat-8\\endorsed

12-Jan-2017 13:30:55.854 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=E:\\C-E\\apache-tomcat-812-Jan-2017 13:30:55.854 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=E:\\C-E\\apache-tomcat-8

12-Jan-2017 13:30:55.854 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=E:\\C-E\\apache-tomcat-8\emp12-Jan-2017 13:30:55.854 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.2.10 using APRversion 1.5.2.

12-Jan-2017 13:30:55.855 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random[true].

12-Jan-2017 13:30:56.954 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.2j 26 Sep 2016)12-Jan-2017 13:30:57.211 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [\"http-apr-8080\"]12-Jan-2017 13:30:57.234 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [\"ajp-apr-8009\"]12-Jan-2017 13:30:57.238 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 2281 ms12-Jan-2017 13:30:57.315 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina

12-Jan-2017 13:30:57.316 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.39

12-Jan-2017 13:30:57.339 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\\C-E\\apache-tomcat-8\\webapps\\docs

12-Jan-2017 13:30:58.364 信息 [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for sessionID generation using [SHA1PRNG] took [323] milliseconds.

12-Jan-2017 13:30:58.427 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\\C-E\\apache-tomcat-8\\webapps\\docs has finished in 1,088 ms

12-Jan-2017 13:30:58.428 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\\C-E\\apache-tomcat-8\\webapps\\examples

12-Jan-2017 13:30:59.313 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\\C-E\\apache-tomcat-8\\webapps\\examples has finished in 886 ms

12-Jan-2017 13:30:59.322 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\\C-E\\apache-tomcat-8\\webapps\\host-manager

12-Jan-2017 13:30:59.391 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\\C-E\\apache-tomcat-8\\webapps\\host-manager has finished in 76 ms

12-Jan-2017 13:30:59.392 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\\C-E\\apache-tomcat-8\\webapps\\manager

12-Jan-2017 13:30:59.462 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\\C-E\\apache-tomcat-8\\webapps\\manager has finished in 70 ms

12-Jan-2017 13:30:59.462 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\\C-E\\apache-tomcat-8\\webapps\\ROOT

12-Jan-2017 13:30:59.524 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\\C-E\\apache-tomcat-8\\webapps\\ROOT has finished in 62 ms

12-Jan-2017 13:30:59.534 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [\"http-apr-8080\"]12-Jan-2017 13:30:59.574 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [\"ajp-apr-8009\"]12-Jan-2017 13:30:59.590 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 2351 ms

然后在浏览器中输⼊ http://localhost:8080 回车后,显⽰如下界⾯:此时就说明Tomcat服务启动正常了、、

因篇幅问题不能全部显示,请点此查看更多更全内容