"Go" Windows 7 system installation and configuration Tomcat server environment

Source: Internet
Author: User

Tools/Materials
    • Jdk-8u51-windows-x64 (my system is 64-bit system, 32-bit please choose x86 download): http://www.oracle.com/technetwork/java/javase/downloads/ Jdk8-downloads-2133151.html

    • apache-tomcat-8.0.24-windows-x64:http://tomcat.apache.org/download-80.cgi

Method/Step
  1. Download instructions, this does not post the link address, please degree Niang bar.

    JDK download, when you go to the official website, after your little effort you enter the page, download, please put the top of the Accept License agreement selected, and then according to your system click the corresponding version. My system is 64-bit Windows, select jdk-7u45-windows-x64 download.

  2. Tomcat download, you need to download a compatible version of the JDK, the official homepage is as shown, here with the latest version of the JDK corresponds to the Tomcat 8.0. The downloaded file name is

    Apache-tomcat-8.0.24-windows-x64.exe

  3. Installing and configuring environment variables

    1, first install the JDK, and you usually install the software, very silly to carry on, here will not tell.

    Here, the general online replication experience is the direct default installation path, I am here very see but with the version number of the folder, in the installation of the selection path directly installed in the C folder JDK as shown below.

    2. Configuring the JDK environment variables

    This step many people do not understand, is generally the configuration. To put it simply, it is quite easy to get an individual name for the JDK path you have installed, which is handy for later operations on the cmd command line.

    1) Right-click on the computer (my Computer), or click the Control Panel directly, the Control Panel home page will pop up.

    2) Select the environment variable as shown in Figure A, and the window shown in Figure B will pop up

  4. 3) New 3 variables required in system variables

    Case insensitive, if the same variable name exists, use edit to modify the variable value.

    The variable is named Java_home, and the variable value is: C:\JDK (depending on the JDK path you installed, if the default should be this form C:\Program files\java\jdk1.7)

    The variable is named Classpath and the value of the variable is.; %java_home%\lib;

    The variable is named path and the variable value is%java_home%\bin

    Now that you have completed the environment configuration for the JDK, enter the java-version test on the cmd command line interface to see if the installation was successful. The following is the installation and configuration of the Tomcat server.

  5. Installation and configuration of Tomcat

    Unzip the download package, not accustomed to the version number folder, where I modified the default folder name apache-tomcat-8.0.0-rc5-windows-x64 to Tomcat. Ask the students to choose according to their wishes.

  6. Configuring the Tomcat environment variable

    To open the system environment variable, please refer to the third step diagram operation.

    Add the following variable in the system variable

    1) New Tomcat_home variable

    Variable name Tomcat_home

    Variable Value C:\tomcat

    The value of the variable is the Tomcat decompression path that we downloaded, here my is c:\tomcat, if have doubts, can refer to fifth step.

  7. 2) New Catalina_home variable

    Variable name Catalina_home

    Variable Value C:\tomcat

    Yes, the value of the Catalina_home variable is the same as the value of the Tomcat_home variable.

  8. 3) Modify the variable path

    Locate the path variable name in the system variable, double-click or click Edit, and add the following at the end

    ;%catalina_home%\bin;%catalina_home%\lib

    It is important to note that the values of each variable must be separated.

  9. 4) Start the Tomcat server

    Enter startup return under CMD Command window, run as shown

  10. Test whether the Tomcat server is installed successfully

    Enter http://http://localhost:8080 or http://127.0.0.1:8080 in the browser

    The installation will be successful as shown in

    END
Precautions
    • The environment variable value should be half-width in English, delimited, and end cannot have "\". The middle of each environment variable value, whether there are extra letters or spaces, etc.

    • There are many online replication experiences that often suggest using the service to start Tomcat, but show that ' Servic ' is not an internal or external command, I can't use it, I'm using startup here.

"Go" Windows 7 system installation and configuration Tomcat server environment

Related Article

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.