The latest Linux installation process of tomcat8

The latest Linux installation process of tomcat8

Download

https://tomcat.apache.org/download-80.cgi

Select Core package to download

After downloading, you need to upload the file to the server, you can use xshell. I use ZMODEM and can directly drag the file to the server usr/src directory

If you can't delay, you need to install the tool yum install -y lrzsz

If the installation prompts you, you need root privileges to execute this command.

You need to switch to the root user and grant permissions

First, modify the permissions of the sudoers file so that it is not read-only

Edit the sudoers file and add the lzq user to all executable permissions

Then change the sudoers file permissions back to 440

Then switch back to root to start downloading

yum install -y lrzsz

Unzip tomcat

Enter the bin/directory and execute ./startup.sh to start tomcat

You can enter ps -ef | grep tomcat to check whether tomcat is started.

You can also enter the logs to view the startup log

I started it here but I can't access it. It should be because the firewall does not open the port

Check open port numbers

firewall-cmd --list-all

Set the open port number

sudo firewall-cmd --add-port=80/tcp --permanent

Restart the firewall

firewall-cmd --reload

OK

If you want to play with the cluster, you need to change the port number

Enter the tomcat configuration file to modify the port number

Two places need to be modified

Modify the binding port 8090

Then exit, save and start tomcat

The port is not open.

Re-execute

Check open port numbers

firewall-cmd --list-all

Set the open port number

sudo firewall-cmd --add-port=80/tcp --permanent

Restart the firewall

firewall-cmd --reload

OK

Configure tomcat again

This is the end of this article about the latest illustrated process of installing tomcat8 under Linux. For more relevant content about installing tomcat under Linux, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Common Linux commands for beginners: password - change password, change user
  • Detailed explanation of common CURL commands in Linux
  • Install git and common git commands on Linux system
  • Very practical Linux system operation and maintenance common commands and common sense (super practical)
  • A complete collection of commonly used Linux commands (super comprehensive)
  • How to open a certain port number in the firewall under Linux and use common firewall commands (detailed explanation)
  • Summary of Commonly Used MySQL Commands in Linux Operating System
  • Linux Common Commands (Classic)
  • Common commands and differences between find and grep in Linux
  • Accumulate the most commonly used Linux commands
  • 20 common commands for beginners in LINUX
  • Daily collection of commonly used Linux commands (collection)
  • Detailed explanation of the usage of the common Linux command last
  • Detailed explanation of the common commands for banning and unblocking IPs in Linux firewall iptables
  • Compilation of common commands for linux intrusion
  • Summary of common commands based on Linux debugging tools strace and gdb
  • Common commands for viewing Linux system information
  • A complete list of common Linux system commands for beginners

<<:  Tips for using DIV container fixed height in IE6 and IE7

>>:  Perfect solution for JavaScript front-end timeout asynchronous operation

Recommend

MYSQL slow query and log example explanation

1. Introduction By enabling the slow query log, M...

How to optimize MySQL query speed

In the previous chapters, we introduced how to ch...

Two types of tab applications in web design

Nowadays, tabs are widely used in web design, but...

Example of automatic stop effect after text scrolling

The effect is very simple, just copy the following...

How to successfully retrieve VMware Esxi root password after forgetting it

Prepare a CentOS6 installation disk (any version)...

The latest collection of 18 green style web design works

Toy Story 3 Online Marketing Website Zen Mobile I...

How to Clear Disk Space on CentOS 6 or CentOS 7

Following are the quick commands to clear disk sp...

Docker uses a single image to map to multiple ports

need: The official website's resource server ...

Detailed explanation of Vue development website SEO optimization method

Because the data binding mechanism of Vue and oth...

Solve the scroll-view line break problem of WeChat applet

Today, when I was writing a small program, I used...

SQL GROUP BY detailed explanation and simple example

The GROUP BY statement is used in conjunction wit...

CSS3 realizes the glowing border effect

Operation effect: html <!-- This element is no...

How to modify mysql to allow remote connections

Regarding the issue of MySQL remote connection, w...

MySQL 8.0.12 Installation and Usage Tutorial

Recorded the installation and use tutorial of MyS...

Web Design: Web Music Implementation Techniques

<br />When inserting music into a web page, ...