Detailed graphic tutorial on installing and uninstalling Tomcat8 on Linux

Detailed graphic tutorial on installing and uninstalling Tomcat8 on Linux

[ Linux installation of Tomcat8 ]

Uninstall Tomcat - Stop Tomcat first

# systemctl stop tomcat
# yum remove tomcat 

rpm installed can be removed with yum remove tomcat

Install Apache Tomcat8 using the open source image download from Central China Normal University of Science and Technology


# wget http://mirrors.hust.edu.cn/apache/tomcat/tomcat-8/v8.5.37/bin/apache-tomcat-8.5.37.tar.gz

Unzip Tomcat and delete the installation package - you can set the storage location you want when unzipping

# rm -rf apache-tomcat-8.5.37.tar.gz
# tar -vzxf apache-tomcat-8.5.37.tar.gz


Move Tomcat to /usr/local/ and rename it

# mv apache-tomcat-8.5.37 /usr/local/tomcat 

Start Tomcat

# cd /usr/local/tomcat/bin
# ./startup.sh


Check whether the Tomcat service is started

# ps -ef|grep tomcat

Shutdown Tomcat

# cd /usr/local/tomcat/bin
# ./shutdown.sh


Check Tomcat version

# cd /usr/local/tomcat/bin
# ./version.sh

server.xml configuration

# vim /usr/local/tomcat/conf/server.xml
<Connector executor="tomcatThreadPool" port="8080" 
    protocol="org.apache.coyote.http11.Http11NioProtocol"
    maxThreads="1000" minSpareThreads="100" maxSpareThreads="200"
    acceptCount="1000" disableUploadTimeout="true" connectionTimeout="20000"
    URIEncoding="UTF-8" enableLookups="false" compression="on"
    compressionMinSize="2048"
compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain,image/gif,image/jpg,image/png" redirectPort="8443" />


Set startup

Edit rc.local file

# vim /etc/rc.d/rc.local

Add the last line /root/apache-tomcat-8.5.37/bin/startup.sh

/usr/local/tomcat/bin/startup.sh

​​​​​​​​

Restart the server to take effect (the virtual machine will restart)

# reboot

Tomcat Directory Structure

webapps directory structure

Summarize

The above is a detailed graphic tutorial on how to install and uninstall Tomcat8 in Linux. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • cemtos 7 linux installation and uninstallation of tomcat 7 tutorial
  • How to uninstall and reinstall Tomcat (with pictures and text)

<<:  How to add file prefixes in batches in Linux

>>:  A brief summary of all encapsulation methods in Vue

Recommend

Docker deploys nginx and mounts folders and file operations

During this period of time, I was studying docker...

React method of displaying data in pages

Table of contents Parent component listBox List c...

Pure CSS to adjust Div height according to adaptive width (percentage)

Under the requirements of today's responsive ...

How to install and use Server-U 14 version

Introducing Server-U software Server-U is a very ...

How to automatically execute SQL statements when MySQL in Docker starts

When creating a MySQL container with Docker, some...

Summary of some points to note when registering Tomcat as a service

Here are some points to note when registering Tom...

Tomcat maxPostSize setting implementation process analysis

1. Why set maxPostSize? The tomcat container has ...

Details of the underlying data structure of MySQL indexes

Table of contents 1. Index Type 1. B+ Tree 2. Wha...

Linux touch command usage examples

Detailed explanation of linux touch command: 1. C...

MySQL 5.7.17 installation and configuration method graphic tutorial (windows)

1. Download the software 1. Go to the MySQL offic...

Vue-CLI multi-page directory packaging steps record

Page directory structure Note that you need to mo...

Solve the problem of docker pull being reset

This article introduces how to solve the problem ...

JavaScript ECharts Usage Explanation

I used ECharts when doing a project before. Today...