Introduction to possible problems after installing Tomcat

Introduction to possible problems after installing Tomcat

1. Tomcat service is not open

Enter localhost:8080 in the address bar of the browser and press Enter to display the following interface

Tomcat service is not open. Enter startup.bat in cmd. Do not close the open tomcat window.

2. Enter the wrong URL path

If you enter the URL in the browser and it displays 404, it may be that the entered path does not exist or the entered path is incorrect.

3. Java JDK environment variables are not set

When entering startup.bat in cmd, an error is reported.

As shown:

Solution:

This is because the environment variable name of the Java jdk is not set correctly. The variable name for setting the jdk path must be JAVA_HOME .

Find the system variable interface and change the incorrect jdk variable name.

After the change: After the change, reopen cmd and enter startup.bat to start normally.

4. Repeatedly enable the service

The service has been enabled and does not need to be enabled again.

5. Port is occupied

Access Error occurs when accessing via the web page, and the port is occupied

Open cmd and enter the command: delete the process occupying the port number you specified

netstat -ano: View all port information

netstat ano | findstr "8080": View port 8080 usage information

tasklist: View all processes

tasklist | findstr "1": View a process

taskkill /f /pid process number: delete a process number

This is the end of this article about the problems that may arise after installing tomcat. For more information about installing tomcat, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Solution to 404 Problem of Tomcat Installation in Docker

<<:  Detailed explanation of the use and difference between relative and absolute in HTML

>>:  Example code for implementing complex table headers in html table

Recommend

Solution to the problem of invalid width setting for label and span

By default, setting width for label and span is in...

Getting Started with Mysql--sql execution process

Table of contents 1. Process 2. Core Architecture...

Creative About Us Web Page Design

Unique “About”-Pages A great way to distinguish yo...

MySql import CSV file or tab-delimited file

Sometimes we need to import some data from anothe...

About if contains comma expression in JavaScript

Sometimes you will see English commas ",&quo...

JavaScript to achieve full screen page scrolling effect

After I finished reading JavaScript DOM, I had a ...

Optimization analysis of Limit query in MySQL optimization techniques

Preface In actual business, paging is a common bu...

Detailed explanation of how a SQL statement is executed in MySQL

Overview I have recently started learning MySQL r...

VPS builds offline download server (post-network disk era)

motivation Due to learning needs, I purchased a v...

Two ways to configure Vue global methods

Table of contents 1. Introduction 2. The first me...

Analysis of several reasons why Iframe should be used less

The following graph shows how time-consuming it is...

Detailed explanation of the binlog log analysis tool for monitoring MySQL: Canal

Canal is an open source project under Alibaba, de...

Pagination Examples and Good Practices

<br />Structure and hierarchy reduce complex...