Aliyun RDS purchase Linux complete process - install java environment and run tomcat

Table of contents

1. The process video of the purchase process

2. Install the java environment installation of javaJDK without order configuration

3. Java compilation environment test

4. Install the Tomcat environment

5. Unzip tomcat

6. Start tomcat

7. Public network link test

Access failure description:

8. Run the java project

9. Summary


1. The process video of the purchase process

Purchase Ali Linux service (complete local access operation)

2. Install the java environment installation of javaJDK without order configuration

For the convenience of operation, all operations are under [/root]

yum install java-1.8.0-openjdk* -y

3. Java compilation environment test

If javac executes successfully, we have the ability to edit java files in the code.

javac

4. Install the Tomcat environment

Set of alternate paths:

https://mirrors.cnnic.cn/apache/tomcat/tomcat-8

See here that there will be a corresponding tomcat version, we click to download the file according to the path of [version/bin/corresponding version tomcat.tar.gz], or right-click to get the path directly.

Get the download path:

download link:

wget https://mirrors.cnnic.cn/apache/tomcat/tomcat-8/v8.5.88/bin/apache-tomcat-8.5.88.tar.gz

By default, it will be downloaded to /root:

5. Unzip tomcat

grammar:

tar -zxvf decompressed file name

tar -zxvf apache-tomcat-8.5.88.tar.gz

Effect after decompression:

6. Start tomcat

Our startup file is the startup.sh file under the /bin/ file in the folder just unzipped

cd apache-tomcat-8.5.88/bin/

Script file to start tomcat

./startup.sh

7. Public network link test

Access path: http://public address:8080/

Access effect:

Access failure description:

Port number 8080 is not added to the security group.

Go to [Security Group]

Enter security group details

Add access port number

8. Run the java project

War package download address: https://download.csdn.net/download/feng8403000/85033947

Upload path:

Since our tomcat is starting, we can see the [demo] folder after a while and refresh it.

Specific execution file:

Execution effect:

9. Summary

Being able to run the jsp file means that the environment we configured can run the java environment.

This means that our java environment configuration is successful.

Guess you like

Origin blog.csdn.net/feng8403000/article/details/130666884