How to open a blank page for the Tomcat test page

Source: Internet
Author: User
Tags blank page apache tomcat

Win7 installation of Tomcat 9 brief steps:

1. Download Tomcat

Download Tomcat 9.0>core>32-bit/64-bit Windows Service to Tomcat official website https://tomcat.apache.org/download-90.cgi Installer:

After extracting the "Apache-tomcat-9.0.0.m6.exe" file, you can complete the installation by next.

2. Configuring the Tomcat environment variable

    1. New variable name: catalina_base, Variable value: C:\tomcat 9.0;

    2. New variable name: catalina_home, Variable value: C:\tomcat 9.0;

    3. Open path, add variable value:%catalina_home%\lib;%catalina_home%\bin

3. Start Tomcat Service

There are two ways of doing this:

Method #1: Open manually;

Services, management tools, Control Panel, locate Apache Tomcat 9.0 Tomcat9, right-click Properties, set Startup type to Automatic.

Method * 2: Open in command line;

Switch to the bin directory of the TOMCA installation directory, enter the command "CD C:\Program Files\apache-tomcat-7.0.69\bin" and run "Startup.bat"

4. Test whether Tomcat is installed successfully

Enter "http://localhost:8080" or "http://127.0.0.1:8080" in the browser, See a JSP page from Tomcat-the page on the Tomcat basic instructions was installed successfully.

But I opened http://localhost:8080 it and it showed a blank page .

The workaround is shown in the following Scarlet Letter section.

Dos commands for CMD in Windows view the programs and PID numbers that occupy a port:

1, press the shortcut key "Win+r", enter the cmd and press ENTER to enter the DOS environment;

2. View the usage of a specific port:

Take port 8080 As an example, enter the command "NETSTAT-AON|FINDSTR" 8080 "" and press ENTER to display the following, you can see the 80 port corresponding to the program's PID number 3888:

3, according to the PID number to find a port corresponding program:

Continue to enter the command "TASKLIST|FINDSTR" 3888 ":

Through the above query, it is concluded that:

Error reason: Port 8080 is occupied by other programs.

Workaround: Kill the consuming program and restart Tomcat.

4, according to the queried program name, the end of the process:

Enter command "taskkill/f/t/im Java.exe"

How to open a blank page for the Tomcat test page

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.