tomcat-installation Configuration

Source: Internet
Author: User
Tags apache tomcat

0. Download:
Download the latest version of tomcat:http://tomcat.apache.org/download-60.cgi from the official website to find the appropriate version.
According to the computer system version, I downloaded the apache-tomcat-8.0.20-windows-x86.zip
Unzip directly onto the D-disk, the directory is apache-tomcat-8.0.20

1. Run:
Find the D:\apache-tomcat-8.0.20\bin under the Startup.bat flash immediately, not see the relevant content.
Use CMD to see the relevant informational hints:
Microsoft Windows [version 6.1.7600]
Copyright (c) Microsoft Corporation. All rights reserved.

C:\users\an>d:

D:\>CD Apache-tomcat-8.0.20\bin

D:\apache-tomcat-8.0.20\bin>startup.bat
Neither the Java_home nor the JRE_HOME environment variable is defined
At least one of these environment variable are needed to run this program
D:\apache-tomcat-8.0.20\bin>


The JDK was already installed on the computer and the relevant environment variables were configured.

2. Configuration:
Right-click Computer--"Properties----" Advanced system Settings---"Enter the environment variable
In the system variable, create a new project
Variable name: corresponding variable value:
Java_home C:\Program files\java\jdk1.8.0_31
Jre_home C:\Program files\java\jre1.8.0_31


3. Run the test:
In the second with CMD to see the relevant information prompt:
Microsoft Windows [version 6.1.7600]
Copyright (c) Microsoft Corporation. All rights reserved.

C:\users\an>d:

D:\>CD Apache-tomcat-8.0.20\bin

D:\apache-tomcat-8.0.20\bin>startup.bat
Using catalina_base: "D:\apache-tomcat-8.0.20"
Using catalina_home: "D:\apache-tomcat-8.0.20"
Using catalina_tmpdir: "D:\apache-tomcat-8.0.20\temp"
Using jre_home: "C:\Program files\java\jre1.8.0_31"
Using CLASSPATH: "D:\apache-tomcat-8.0.20\bin\bootstrap.jar;d:\apache-tomcat-8.0.20\bin\tomcat-juli.jar"
D:\apache-tomcat-8.0.20\bin>
Then the Tomcat runtime window is displayed normally:
11-MAR-2015 11:52:38.947 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server Version:apache tomcat/8.0.20
11-MAR-2015 11:52:38.949 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server Built:feb 15 2015 18:10:42 UTC
11-MAR-2015 11:52:38.950 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:8.0.20.0
11-MAR-2015 11:52:38.950 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS name:windows 7
11-MAR-2015 11:52:38.950 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS version:6.1
11-MAR-2015 11:52:38.951 INFO [main] Org.apache.catalina.startup.VersionLoggerListener.log architecture:x86
11-MAR-2015 11:52:38.951 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java home:c:\program Files \java\jre1.8.0_31
11-MAR-2015 11:52:38.951 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM version:1.8.0_31-b13
11-MAR-2015 11:52:38.952 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM vendor:oracle Corporation
11-MAR-2015 11:52:38.952 INFO [main] Org.apache.catalina.startup.VersionLoggerListener.log catalina_base:d:\ apache-tomcat-8.0.20
11-MAR-2015 11:52:38.953 INFO [main] Org.apache.catalina.startup.VersionLoggerListener.log catalina_home:d:\ apache-tomcat-8.0.20
11-MAR-2015 11:52:38.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument:- Djava.util.logging.config.file=d:\apache-tomcat-8.0.20\conf\logging.properties
11-MAR-2015 11:52:38.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument:- Djava.util.logging.manager=org.apache.juli.classloaderlogmanager
11-MAR-2015 11:52:38.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument:- Djava.endorsed.dirs=d:\apache-tomcat-8.0.20\endorsed
11-MAR-2015 11:52:38.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument:- dcatalina.base=d:\apache-tomcat-8.0.20
11-MAR-2015 11:52:38.955 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument:- dcatalina.home=d:\apache-tomcat-8.0.20
11-MAR-2015 11:52:38.955 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument:- Djava.io.tmpdir=d:\apache-tomcat-8.0.20\temp
11-MAR-2015 11:52:38.955 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native Library 1.1.32 using APR version 1.5.1.
11-MAR-2015 11:52:38.956 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [True], sendfile [true], accept filters [FALSE], random [true].
11-MAR-2015 11:52:40.028 INFO [main] Org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL Successfully initialized (OpenSSL 1.0.1j Oct 2014)
11-MAR-2015 11:52:40.194 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing Protocolhandler [" http-apr-8080 "]
11-MAR-2015 11:52:40.217 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing Protocolhandler [" ajp-apr-8009 "]
11-MAR-2015 11:52:40.220 INFO [main] org.apache.catalina.startup.Catalina.load initialization processed in 1756 MS
11-MAR-2015 11:52:40.253 INFO [main] org.apache.catalina.core.StandardService.startInternal starting service Catalina
11-MAR-2015 11:52:40.254 INFO [main] org.apache.catalina.core.StandardEngine.startInternal starting Servlet Engine: Apache tomcat/8.0.20
11-mar-2015 11:52:40.269 INFO [localhost-startstop-1] Org.apache.catalina.startup.HostConfig.deployDirectory Deploying Web application Directory D:\apache-tomcat-8.0.20\webapps\docs
11-mar-2015 11:52:40.938 INFO [localhost-startstop-1] Org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID Generation using [sha1prng] took [332] milliseconds.
11-mar-2015 11:52:40.967 INFO [localhost-startstop-1] Org.apache.catalina.startup.HostConfig.deployDirectory Deployment of Web application directory D:\apache-tomcat-8.0.20\webapps\docs have finished in 699 ms
11-mar-2015 11:52:40.968 INFO [localhost-startstop-1] Org.apache.catalina.startup.HostConfig.deployDirectory Deploying Web application Directory D:\apache-tomcat-8.0.20\webapps\examples
11-mar-2015 11:52:41.530 INFO [localhost-startstop-1] Org.apache.catalina.startup.HostConfig.deployDirectory Deployment of Web application directory D:\apache-tomcat-8.0.20\webapps\examples have finished in 561 ms
11-mar-2015 11:52:41.530 INFO [localhost-startstop-1] Org.apache.catalina.startup.HostConfig.deployDirectory Deploying Web application Directory D:\apache-tomcat-8.0.20\webapps\host-manager
11-mar-2015 11:52:41.573 INFO [localhost-startstop-1] Org.apache.catalina.startup.HostConfig.deployDirectory Deployment of Web application directory D:\apache-tomcat-8.0.20\webapps\host-manager have finished in MS
11-mar-2015 11:52:41.575 INFO [localhost-startstop-1] Org.apache.catalina.startup.HostConfig.deployDirectory Deploying Web application Directory D:\apache-tomcat-8.0.20\webapps\manager
11-mar-2015 11:52:41.614 INFO [localhost-startstop-1] Org.apache.catalina.startup.HostConfig.deployDirectory Deployment of Web application directory D:\apache-tomcat-8.0.20\webapps\manager have finished in MS
11-mar-2015 11:52:41.614 INFO [localhost-startstop-1] Org.apache.catalina.startup.HostConfig.deployDirectory Deploying Web application Directory D:\apache-tomcat-8.0.20\webapps\ROOT
11-mar-2015 11:52:41.682 INFO [localhost-startstop-1] Org.apache.catalina.startup.HostConfig.deployDirectory Deployment of Web application directory D:\apache-tomcat-8.0.20\webapps\ROOT have finished in
11-MAR-2015 11:52:41.687 INFO [main] Org.apache.coyote.AbstractProtocol.start starting Protocolhandler [" http-apr-8080 "]
11-MAR-2015 11:52:41.698 INFO [main] Org.apache.coyote.AbstractProtocol.start starting Protocolhandler ["ajp-apr-8009 "]
11-MAR-2015 11:52:41.700 INFO [main] Org.apache.catalina.startup.Catalina.start Server startup in 1479 MS

At this point, the Java JDK and Tomcat environments are configured to complete
After the configuration is complete to determine if the configuration is successful, the following steps
1 verifying that the Java JDK is configured successfully
Enter the console input Java If "Java" is not an internal or external command and is not a running program or batch file, the configuration is not successful. Conversely, if Java-related things happen, it means success.
2. Verify that Tomcat is configured successfully
Go to the Bin directory of Tomcat, locate Startup.bat, double-click Run, if one disperses, it may not be configured successfully (further determine, enter localhost:8080 or 127.0.0.1 in the Web address bar) : 8080, if no response is not configured successfully), otherwise the configuration is successful

tomcat-installation Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.