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

Install Zookeeper under Docker (standalone and cluster)

After starting Docker, let's take a look at t...

MySQL backup table operation based on Java

The core is mysqldump and Runtime The operation i...

How to encapsulate axios request with vue

In fact, it is very simple to encapsulate axios i...

Detailed explanation of JSONObject usage

JSONObject is just a data structure, which can be...

Detailed explanation of docker entrypoint file

When writing a Dockerfile, include an entrypoint ...

User needs lead to marketing-oriented design

<br />For each of our topics, the team will ...

jQuery combined with CSS to achieve the return to top function

CSS Operations CSS $("").css(name|pro|[...

Graphic tutorial for installing MySQL 5.6.35 on Windows 10 64-bit

1. Download MySQL Community Server 5.6.35 Downloa...

JS implements simple example code to control video playback speed

introduction I discovered a problem before: somet...

Analysis of the method of setting up scheduled tasks in mysql

This article uses an example to describe how to s...

How to write the introduction content of the About page of the website

All websites, whether official, e-commerce, socia...