Alibaba Cloud Server Linux System Builds Tomcat to Deploy Web Project

Alibaba Cloud Server Linux System Builds Tomcat to Deploy Web Project

I divide the whole process into four steps:

Download and install JDK

Download and install Tomcat

Configure Alibaba Cloud server information

Deploy web project

Tools used: Xshell, WinSCP.

If you have not installed JDK, please click the link above to go to the JDK installation blog.

Download and install Tomcat

Go to this page to view the latest mirror: https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat

Use the tool Xshell to operate the Linux system

insert image description here

Move to the home directory and download tomcat

insert image description here

download

wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-9/v9.0.30/bin/apache-tomcat-9.0.30.tar.gz

insert image description here

It can be seen that there are more related tomcat compressed packages in the folder

Unzip

tar -zxvf apache-tomcat-9.0.30.tar.gz 

insert image description here

After decompression, the apache-tomcat-9.0.30 folder will appear.

insert image description here

If you need to modify the release port, you need to modify server.xml in conf.

insert image description here

Edit server.xml with the vim command to modify the port. Find the following figure and change the port 8080 to 8088

vim command:

Click Ins Scrlk to enter edit mode and click again to exit edit mode

Modify the port after entering edit mode

After editing, press Esc and enter ':wq' to save and exit

insert image description here

Save and exit

insert image description here

Configure Alibaba Cloud server information

Log in to the Alibaba Cloud console and configure port 8088

insert image description here

insert image description here

insert image description here

insert image description here

After adding, you can use port 8088!

Run tomcat

sh startup.sh
//Or ./startup.sh

Enter ip:8088 and wait for it to build and deploy to achieve the effect

insert image description here

After installing Tomcat, we can simply deploy our web project.

Deploy web project

Access our Tomcat directory through the WinSCP tool to find the webapps folder

insert image description here

We can achieve this by deleting the files under webapps/ROOT and putting our own web page.

insert image description here

This is my own website

insert image description here

Achieve results

insert image description here

This is the end of this article about setting up Tomcat and deploying Web projects on Alibaba Cloud Server Linux system. For more relevant content about Alibaba Cloud Server Tomcat deploying Web, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to use IDEA to create a web project and publish it to tomcat
  • How to remove the embedded Tomcat in Spring Boot and start it in a non-web way
  • Detailed explanation of the process of deploying Tomcat and creating the first web project in IDEA 2020.3.1
  • Tomcat first deployment web project process diagram
  • Solve the problem that the files under WEB-INF/classes are not compiled after tomcat releases the project
  • Solve the problem that SpringBoot webSocket resources cannot be loaded and tomcat startup errors
  • IDEA graphic tutorial on configuring Tomcat server and publishing web projects
  • Briefly describe how to install Tomcat image and deploy web project in Docker
  • Analysis of the process of deploying pure HTML files in Tomcat and WebLogic
  • IDEA2020.1.2 Detailed tutorial on creating a web project and configuring Tomcat
  • How to configure Tomcat and run your first Java Web project on IntelliJ IDEA 2018
  • Idea configures tomcat to start a web project graphic tutorial
  • Java web project starts Tomcat error solution
  • Tomcat source code analysis of Web requests and processing

<<:  Vue realizes the function of uploading photos on PC

>>:  Example explanation of MySQL foreign key constraints

Recommend

Detailed explanation of Vue data proxy

Table of contents 1. What I am going to talk abou...

Creating a file system for ARM development board under Linux

1. Please download the Busybox source code online...

Vue multi-page configuration details

Table of contents 1. The difference between multi...

Example of implementing dashed border with html2canvas

html2canvas is a library that generates canvas fr...

Detailed explanation of the relationship between React and Redux

Table of contents 1. The relationship between red...

MySQL database import and export data error solution example explanation

Exporting Data Report an error SHOW VARIABLES LIK...

How to optimize MySQL indexes

1. How MySQL uses indexes Indexes are used to qui...

js to call the network camera and handle common errors

Recently, due to business reasons, I need to acce...

Analysis of uniapp entry-level nvue climbing pit record

Table of contents Preface Hello World image Set b...

A simple way to implement Vue's drag screenshot function

Drag the mouse to take a screenshot of the page (...

MySQL DATE_ADD and ADDDATE functions add a specified time interval to a date

MySQL DATE_ADD(date,INTERVAL expr type) and ADDDA...

A detailed discussion on detail analysis in web design

In design work, I often hear designers participati...