Windows:tomcat Installation-free environment variable configuration + JDK configuration

Source: Internet
Author: User

1. After downloading, I unzipped the directory: D:\Tomcat\apache-tomcat-9.0.1-windows-x64

2. Install the JDK and JRE, and configure the environment variables;

2.1 User variable new Java_home;

  

2.2 System Variable Classpath added:.; C:\Program Files\java\jdk1.8.0_144\lib\dt.jar; C:\Program Files\java\jdk1.8.0_144\lib\tools.jar;

  

2.3 System variables added in path:%java_home%\bin;

  

2.4 Verify that the JDK is installed, and view the version:

Java

Javac

Java-version 64-bit

Javac-version

3. Configure the Tomcat environment variable;

3.1 Edit User variables:

  

3.2 Editing System Variables Classpath:%catalina_home%\lib\servlet.jar

  

3.3 Editing System variables path:%catalina_home%\bin

  

4. Verification

Open the command line, Windows-cmd.

  

Under the D:\Tomcat\apache-tomcat-9.0.1-windows-x64\apache-tomcat-9.0.1\bin directory

Click Start:

In the browser input: http://localhost:8080/, it will appear:

If a 404 error occurs, the 8080 port is occupied, you can start Task Manager to kill the 8080 port process, restart Tomcat!

Here, the Tomcat installation configuration is complete!

Windows:tomcat Installation-free environment variable configuration + JDK configuration

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.