Tomcat CentOS installation process diagram

Tomcat CentOS installation process diagram

Tomcat CentOS Installation

This installation tutorial covers:

Install Tomcat 9.0 on Linux (CentOS7)

The tomcat server is started (the script seems to have a problem, and it is directly quoted from someone else's blog)

Configure username and password for tomcat

step:

1. Download Tomcat

or


Then what

Then right click and copy the link address

Use wget wget + link address to download it. (Downloading directly in this way will download to your current path)

Then transfer it to /usr/local/Tomcat/ (this is what I did)

2. Next is JDK installation

3. Then use tar -zxvf apache-tomcat-xxxx.tar.gz and then mv apache-tomcat-xxxx tomcat (this will decompress it into tomcat)

4. Then let's talk about the files in tomcat

  • bin: stores script files, including start and stop
  • conf: stores Tomcat server configuration files
  • lib: stores the jar packages required by the Tomcat server
  • logs: Stores Tomcat service operation logs
  • temp: stores temporary files used by Tomcat
  • webapps: stores resources accessed by clients (java programs)
  • work: stores the Servlet files converted by Tomcat from JSP

5. Open the script file startup.sh to verify whether the installation is successful (if it is started, it is successful)

6. The default access port of Tomcat is 8080. Check whether port 8080 is open and access it.

7. Tomcat as a service

8. Configure the username and password, that is, the username and password for access, and edit the tomcat-user.xml file in the conf folder.

<role rolename="admin-gui"/> <role rolename="manager-gui"/> <user username="tomcat" password="admin" roles="manager-gui,admin-gui"/>

9. If Host Manager displays 403, configure the /webapps/manager/META-INF/context.xml file

Modify or add only the Value portion.

<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" />

^.*$ means open to all IP segments.

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Linux (CentOS7) installs Tomcat and sets Tomcat as a startup item (taking tomcat8 as an example)
  • How to install and configure tomcat9 in Centos7 and set it to start automatically
  • Installation of Tomcat9 and deployment of web projects under Linux CentOS
  • Installation and configuration tutorial of Tomcat8 under Centos7.3
  • Detailed explanation of installing Tomcat as a service under CentOS 7
  • Tomcat installation tutorial under Linux centos7 environment
  • Detailed explanation of CentOS7.0 installation and configuration of Tomcat-7
  • Detailed explanation of the process of installing Tomcat7 under CentOS system

<<:  How to use watch listeners in Vue2 and Vue3

>>:  Example method to view the IP address connected to MySQL

Recommend

How to write asynchronous tasks in modern JavaScript

Preface In this article, we'll explore the ev...

CSS3 realizes the effect of triangle continuous enlargement

1. CSS3 triangle continues to zoom in special eff...

How many ports can a Linux server open at most?

Table of contents Port-related concepts: Relation...

A record of the pitfalls of the WeChat applet component life cycle

The component lifecycle is usually where our busi...

Tomcat Nginx Redis session sharing process diagram

1. Preparation Middleware: Tomcat, Redis, Nginx J...

MySQL SHOW PROCESSLIST assists in the entire process of troubleshooting

1. SHOW PROCESSLIST command SHOW PROCESSLIST show...

Comparative Analysis of IN and Exists in MySQL Statements

Background Recently, when writing SQL statements,...

Detailed explanation of MySQL 30 military rules

1. Basic Specifications (1) InnoDB storage engine...

A Different Kind of "Cancel" Button

The “Cancel” button is not part of the necessary ...

Steps of an excellent registration process

For a website, it is the most basic function. So l...

MySQL multi-table query detailed explanation

Eating well and getting enough rest sounds simple...

Solution to the problem that order by is not effective in MySQL subquery

By chance, I discovered that a SQL statement prod...

Creative About Us Web Page Design

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

Implementing license plate input function in WeChat applet

Table of contents Preface background Big guess Fi...